Open a workbook using F8 key

Luthius

Active Member
Joined
Apr 5, 2011
Messages
324
Hello everyone
I want to use the SendKeys to open file using FollowHyperlink method.

I have a constant called StrPath
Public Const strPath As String = "J:\Public\Spares & Consumables\"

All my files are named with the pattern yy-0000 (example 11-1025; 12-1523) where yy is the abbreviation of the year. The file name ends containing some information that indicates what that file is about . Example:
12-1523 - Nitrogen Bottles.xls

Everyweek we received a list containing a lot of these code (yy-0000 - Name of the file.xls) and we need open all of them. I would like to use the Followhyperlink to open the file using sendKeys, I mean, when the cells contains the code I'll press F8 key and it will open the respective file using the followhyperlink method just checking with the code of file.

Luthius
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Forum statistics

Threads
1,224,247
Messages
6,177,414
Members
452,774
Latest member
Macca1962

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top