I'm very (VERY!) new to writing Macros, so I think I'm biting off more than I can chew...
We have about 190 locations that we pull files from. I'm trying to pull these files and do a Vlookup to a tax table available on our Intranet. The problem I'm having is that when I "write" the macro (using the record button), I can get it to work but the code is showing the specific name of the spreadsheet I'm writing from. I want to be able to run the macro to do a Vlookup on any of the 190 locations we pull, which would all be named differntly.
My current line shows this:
Windows("LOC401 PUMPKIN CUSTOMERS NOV 2014.xls").Activate
So, my macro only works in this spreadsheet. Can I make this more generic so it will work with any spreadsheet?
Thank you,
HS
We have about 190 locations that we pull files from. I'm trying to pull these files and do a Vlookup to a tax table available on our Intranet. The problem I'm having is that when I "write" the macro (using the record button), I can get it to work but the code is showing the specific name of the spreadsheet I'm writing from. I want to be able to run the macro to do a Vlookup on any of the 190 locations we pull, which would all be named differntly.
My current line shows this:
Windows("LOC401 PUMPKIN CUSTOMERS NOV 2014.xls").Activate
So, my macro only works in this spreadsheet. Can I make this more generic so it will work with any spreadsheet?
Thank you,
HS