View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
L Mehl L Mehl is offline
external usenet poster
 
Posts: 73
Default VLOOKUP into another workbook

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'!TestC aseInfo,3,FALSE)

Using this in VBA as
variable =
Application.WorksheetFunction.VLOOKUP(1,'C:\...pat h...\TA_TestScript.xls'!Te
stCaseInfo,3,FALSE)
gives the error
"Expected: Expression"

Is this enough for you to comment on?

Larry


"Bob Phillips" wrote in message
...
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)

"L Mehl" wrote in message
...
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


"Bob Phillips" wrote in message
...
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)

"L Mehl" wrote in message
...
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


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.576 / Virus Database: 365 - Release Date: 1/30/2004






---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.576 / Virus Database: 365 - Release Date: 1/30/2004






---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.576 / Virus Database: 365 - Release Date: 1/30/2004