Hi Bob,
Thanks for the offer of help.
The result of building the lookup in workbook on c:
(in part, by pointing to the data lookup range in the other workbook)
is
=VLOOKUP(1,'C:\...path...\TA_TestScript.xls'!TestCaseInfo,3,FALSE)
Using this in VBA as
variable =
Application.WorksheetFunction.VLOOKUP(1,'C:\...path...\TA_TestScript.xl
s'!Te
stCaseInfo,3,FALSE)
gives the error
"Expected: Expression"
Is this enough for you to comment on?
Larry
Bob Phillips said:
Larry,
No it is worksheet formula. It is exactly as I created on my system
and did work.
Post your adapted version and let's see if we can work out what it
should be.
--
HTH
Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
Bob --
Thanks.
Is that code for use in VBA to get a value from an xls in another
folder?
I get the error
"Expected: Expression"
when I adapt it to my scenario.
Thanks for any help.
Larry Mehl
Hi Larry,
=VLOOKUP("Chelsea",'D:\Bob\My Documents\My
Spreadsheets\[Premiership 2003.xls]League
Table'!$B$3:$Z$22,25,FALSE)
'D:\Bob\My Documents\My Spreadsheets\[Premiership 2003.xls] is the
workbook
League Table is the sheet
--
HTH
Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
Hello --
Can someone show me the format for using VLOOKUP in VBA to get a
value from an xls in another folder?
In a worksheet
=VLOOKUP(1,TA_TestScript.xls!TestCases,2,FALSE)
TA_TestScript.xls is the closed file
works, but I can't figure out the correct combination of [ ], "
", etc. to make it reference an xls in another folder, using VBA.
Thanks for any help.
Larry Mehl