Macro with Vlookup

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to write a simple macro with a vlookup contained in it. The
trick is that the vlookup in the macro must be flexible to look in another
excel file for data. The user will decide the name of the file to go into
the macro. My problem is that when I recored the marco the name of the file
I use as an example gets hard coded in, and this defeats the purpose.
Suggestions?
 

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

EXCEL - IF(IFERROR(VLOOKUP question 0
Vlookup function macro 2
Vlookup problem 1
VLOOKUP 2
Macro Help 5
Using VLookup formula in a macro 2
Inserting function into worksheet via macro 4
Using activecell in vlookup 3

Back
Top