Let me describe my situation.
I have 2 xls files. Lets call them info<date>.xls and database<date>.xls
I have to update both files on a weekly basis.
Here are my current steps:
1. Manually update stuff in info<date>.xls and save with today's date, leaving the older file unchanged for archival purposes.
2. Copy a bunch of stuff from info<date>.xls and paste it into database<date>.xls
3. Save a new database file with today's date.
I want to automate the copy action because it takes forever to do it manually. I gave it a first shot and it worked, but the macro hard-coded info9.9.11.xls and database9.9.11.xls into it's code. (I did this yesterday, thus 9/9/11)
Now, what I want is that this is not hard-coded, so that even if the file names change, I can just run the macro and based on which file is active, and which one is passive, it does the copy on its own.
Any suggestions?
I have 2 xls files. Lets call them info<date>.xls and database<date>.xls
I have to update both files on a weekly basis.
Here are my current steps:
1. Manually update stuff in info<date>.xls and save with today's date, leaving the older file unchanged for archival purposes.
2. Copy a bunch of stuff from info<date>.xls and paste it into database<date>.xls
3. Save a new database file with today's date.
I want to automate the copy action because it takes forever to do it manually. I gave it a first shot and it worked, but the macro hard-coded info9.9.11.xls and database9.9.11.xls into it's code. (I did this yesterday, thus 9/9/11)
Now, what I want is that this is not hard-coded, so that even if the file names change, I can just run the macro and based on which file is active, and which one is passive, it does the copy on its own.
Any suggestions?