Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have a spreadsheet that changes daily and needs to save the file
differently each day. The program wont allow you to "save as" then paste something like the date as the file name. How do I get the macro to change the filename each time it needs to save. This can be by and increment of say 1? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Here is a typical format for the save:
Sub saversion() s = Format(Date, "yyyy_mm_dd") ChDir "C:\Documents and Settings\Owner\Desktop" ActiveWorkbook.SaveAs Filename:="DailyFile " & s End Sub If you run the macro today the file name would be : DailyFile 2007_09_16.xls -- Gary''s Student - gsnu200745 "MadasMax" wrote: I have a spreadsheet that changes daily and needs to save the file differently each day. The program wont allow you to "save as" then paste something like the date as the file name. How do I get the macro to change the filename each time it needs to save. This can be by and increment of say 1? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
copy the same raws of all sheets from about a 100 file to a new sheet of a book and save the file | Setting up and Configuration of Excel | |||
How can I save my sheet in macro | Excel Discussion (Misc queries) | |||
Macro Save File (Unique file name) | Excel Worksheet Functions | |||
Q: save a sheet to a file | Excel Discussion (Misc queries) | |||
Macro to save a file as | Excel Discussion (Misc queries) |