Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a function in Excel on a worksheet to go and lookup the value in a
table in another file e.g =VLOOKUP("TEST",'C:\Blairs[tables.xls]Sheet1'!$A$1:$C$100,2) and this works fine. However I'm trying to replicate the same in a VBA macro to create a static document without any functions and cannot get the routine to work e.g lookup_row_value = "TEST" range_lookup = "'C:\[tables.xls]Sheet1'!$A$1:$C$100" found_value = Application.WorksheetFunction.VLookup(lookup_row_v alue, Range(range_lookup), 2, False) Any ideas what I'm doing wrong and how I can fix it. Keep getting a Range error. Cheers |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Vlookup to an external file | Excel Discussion (Misc queries) | |||
Vlookup in external file | Excel Worksheet Functions | |||
Code to select 'Disable Macro' when opening an EXTERNAL FILE | Excel Programming | |||
How do I use vlookup to point to an external file that changes nam | Excel Worksheet Functions | |||
Use macro code from external xls file | Excel Programming |