Is there a way to just append the current date to the file name? The folder will be the same one all the time, and if it happens to change that's something I could just manually change in the code. I'd tried using this:
and I think I found the issue. When I hit Debug on the error and hovered over "TodaysDate" in the Active.Workbook line, it showed the date as "3/10/2012" and files can't be saved with a /.
When I changed the cell type that TodaysDate looks at to Text and input the date as "3-10-2012" then it saved properly.
This brings up one more question - is there a way to do this automatically? I know that ctrl + ; sticks the current date in a cell, but it's formatted as x/x/xx. And changing the cell's formatting to show with dashes instead of slashes doesn't work (as that's how I had it the first time you posted code for me to try). Edit: Nevermind; I can just use an Auto_Run macro to insert the current date in a hidden cell, then use DAY, MONTH, and YEAR functions to separate it.
If there's no easy way to do it, then this will still work great.
Also, eventually I plan to make a kind of cover worksheet that has all of the buttons so the user only has to go to one page. In VB, can I reference cells just as in formulas like below?
Bookmarks