SkoobiDrew
06-12-2014, 09:10 AM
Hello. Please forgive if this has an obvious solution - I am fairly new at the VBS/macro game.
I am creating a "template" file for other users. They will likely rename the file as needed. The macro I have written accesses another file to extract some data, then needs to switch back to the "template" file to place the data. If the user has renamed the file, what command can I put there so it switches back?
Recording the macro generates a "Windows(example filename).Activate" type command, but I need the example filename to be whatever the user has named their file.
Any help/tips would be greatly appreciated. Thanks!
I am creating a "template" file for other users. They will likely rename the file as needed. The macro I have written accesses another file to extract some data, then needs to switch back to the "template" file to place the data. If the user has renamed the file, what command can I put there so it switches back?
Recording the macro generates a "Windows(example filename).Activate" type command, but I need the example filename to be whatever the user has named their file.
Any help/tips would be greatly appreciated. Thanks!