I wrote/recorded a Macro that works with various worksheets.
the main worksheet's name changes each time i use the macro (its a file that records daily data, each day it has a new name, example' MetricsDate 1_1_2000, 1_2_2000 etc)
Part of the Macro includes opening other worksheets/files to bring data into them etc. When the macro needs to activate a different window it is coded to always refer back to 'MetricsDate 1_1_2000' but that was only the name of the file when i recorded the macro, and it is not the name of the file each subsequent time i use the macro. How can i have the macro recognize and activate that window when it has a different name
thanks.
the main worksheet's name changes each time i use the macro (its a file that records daily data, each day it has a new name, example' MetricsDate 1_1_2000, 1_2_2000 etc)
Part of the Macro includes opening other worksheets/files to bring data into them etc. When the macro needs to activate a different window it is coded to always refer back to 'MetricsDate 1_1_2000' but that was only the name of the file when i recorded the macro, and it is not the name of the file each subsequent time i use the macro. How can i have the macro recognize and activate that window when it has a different name
thanks.