File name in Vlookup

  • Thread starter Thread starter sa02000
  • Start date Start date
S

sa02000

I am trying to do vlookup in a macro. Is there any way I can specify
table from a sheet in a workbook that is not open for second argumen
of vlookup?

For this format
ActiveCell.FormulaR1C1 = _

"=VLOOKUP(RC4,[current_file.xls]overall!R2C1:R1000C15,4,FALSE)"
I have to have current_file.xls open

It gave me errors when I tried this

ActiveCell.FormulaR1C1 = _
"=VLOOKUP(RC4,[E:\folder 1\folde
2\current_file.xls]overall!R2C1:R1000C15,4,FALSE)"

What is the correct syntax to specify this file in vlookup so that
dont have to have that file open?

Thanks,
Ja
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

VLOOKUP 4
VLOOKUP 8
VLOOKUP 5
VLOOUP 1
Vlookup in VBA 2
VLOOKUP and then some 2
Why are the two codes below not getting the right formula for myworksheet event change formula? 2
Using cell name to open workbook 1

Back
Top