Home |
Search |
Today's Posts |
#2
![]() |
|||
|
|||
![]()
You can get the date right in the code:
dim myFileName as string myfilename = "C:\" & format(date,"yymm") & " ABC.xls" activeworkbook.saveas filename:=myfilename, fileformat:=xlworkbooknormal Dolphinv4 wrote: Hi, I recorded a macro that automatically saves a file then change the formula in cell A1 to today's date, ie =today(), then save the file. I have a problem with the last part...is there any way I can set the macro such that the file will be saved as "c:\YYMM ABC" where 'YYMM' is the format of the date (probably can be taken from cell A1) and 'ABC' is my own file name? Thanks! -- Dave Peterson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do I save a column to a file (in ascii format) | Excel Discussion (Misc queries) | |||
Macro to save a file as | Excel Discussion (Misc queries) | |||
Macro to save a file as a PDF | Excel Discussion (Misc queries) | |||
Copy cell format to cell on another worksht and update automatical | Excel Worksheet Functions | |||
format question when open csv file | Excel Discussion (Misc queries) |