Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want to know if a macro can save a file with the name of
today's date, and and if so how is that done. Thanks! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() actuveworkbook.save filename:= "C:myDir\" & Format(Date,"yyyy-mmm-dd") & ".xls" -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Sharon Perez" wrote in message ... I want to know if a macro can save a file with the name of today's date, and and if so how is that done. Thanks! |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Sharon
Try this One way to save a copy of the file in C:\ with a date-time stamp You can also use SaveAs Sub test() Dim strdate As String strdate = Format(Now, "dd-mm-yy h-mm-ss") With ThisWorkbook .SaveCopyAs "C:\Copy of " & .Name _ & " " & strdate & ".xls" End With End Sub -- Regards Ron de Bruin http://www.rondebruin.nl "Sharon Perez" wrote in message ... I want to know if a macro can save a file with the name of today's date, and and if so how is that done. Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
File names | Excel Worksheet Functions | |||
Open Excel file get error with file names that have spaces in the | Setting up and Configuration of Excel | |||
EXCEL97 FILE NAMES TRUNCATED TO THE FIRST LETTER IN THE FILE NAME | New Users to Excel | |||
File Names | Excel Programming | |||
file names | Excel Programming |