Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50090

Vlookup problem referencing another workbook

$
0
0
I would like to run a vlookup using VBA on a workbook when its closed, I am using this to find the workbook and referencing it later in the vlookup. However, every time I run this it is coming up with a subscript out of range error. Please help me understand why; it should be so simple and its driving me to distraction.

Dim hLog As Workbook
Set hLog = Workbooks("R:\hLog\hLogSettings.xlsm")

I have checked and rechecked the path directory.

Thanks in advance

Viewing all articles
Browse latest Browse all 50090

Trending Articles