Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a macro that saves off a copy of a file. i would like to put a date
stamp and/or possibly a time stamp on the filename. Is there anyway of doing this? thanks. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
From a recent posting of mine.
Goto the small excel icon in the upper left of the screen next to Fileright clickinsert this. For today, you will get aaa20071116 Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean) Dim mydate As String Application.DisplayAlerts = False mydate = Format(Date, "yyyymmdd") SaveAs Filename:="aaa" & mydate & ".xls" Application.DisplayAlerts = True End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software "Daniel M" wrote in message ... I have a macro that saves off a copy of a file. i would like to put a date stamp and/or possibly a time stamp on the filename. Is there anyway of doing this? thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
set filename to <filename-date on open | Excel Worksheet Functions | |||
set excel <filename to <filename-date | Excel Programming | |||
Date Filename Save as Dialog Macro Thingy!!!!!! | Excel Programming | |||
Macro Filename as Date | Excel Programming | |||
Inserting Date In Filename Using Macro | Excel Programming |