VB Formula

D

Dennis

I have two spreadsheets, where the name of one of the
spreadsheets is a variable in visual basic.

i.e. let X = Spreadsheet A

I want to do a vlookup to that spreadsheet in visual
basic, but it seems like excel takes the vlookup formula
vlookup(A1,X!A:D,4,false) to mean look at the worksheet X
(not the spreadsheet A)

anyone know how to get this to work?

Thanks

-Dennis
 
H

Harald Staff

Hi Dennis

What kind of Visual Basic and where doing what ? Where does this formula go
and how (VB doesn't do VLOOKUP) ? Where is the variable X ? "let X =
Spreadsheet A" will err, do you have any real code that works (or tries to)
to show us ?

Sorry bout the nagging, the information is really necessary.

Best wishes Harald
 

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

Top