Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi i have a macro that copies a worksheet and saves in my documents. My
guestion is there a way to save the file with the current date each time. thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Something like; ActiveWorkbook.Save Environ("userprofile") & "\my documents\my filename " & Format$(Now, "dd-Mmm-yyyy") & ".xls" (replace ActiveWorkbook with however you reference your workbook with new sheet) Regards, Chris. -- Chris Marlow MCSD.NET, Microsoft Office XP Master "coconutt" wrote: Hi i have a macro that copies a worksheet and saves in my documents. My guestion is there a way to save the file with the current date each time. thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
2007 Macro to Open File, Delete Contents, Save New File | Excel Discussion (Misc queries) | |||
Macro help - "Save As" when a file already exists | Excel Programming | |||
Save as and file exists. | Excel Programming | |||
within a macro how can I suppress the warning pop "A file named xxxx.xls already exists in this location. Do you want to replace it?" | Excel Programming | |||
Automate open file, update links, run macro, close and save file | Excel Programming |