Retrive data from another spreadsheet
Hello
I have a macro that retrives data into a template. But I need to have the macro retrieve from the other file no matter what the name is. Ok lets say I have opened spreadsheet named 10971. The macro opens the blank template file and populates correctly. This works good. But I want to have the macro open the template and populate the template from the opened file no matter what the name is! I see on my macro, I see a line like so:
Windows("10971.XLS").Activate
course the macro doesn't work properly unless the one spreadsheet is named 10971! So can I have a variable that retrieves the data from the file no matter the spreadsheet name?
Thanks
Robert