Save File with Date and Time Stamp
Andi, something like this,
Sub Save_As()
ActiveWorkbook.SaveAs Filename:="Test " & Format(Now,
"mm-dd-yyyy-hh-mm") & ".xls", FileFormat:= _
xlNormal, Password:="", WriteResPassword:="",
ReadOnlyRecommended:=False _
, CreateBackup:=False
End Sub
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003
"Andibevan" wrote in message
...
Hi All,
How do I save a file with a date and time stamp?
I need the filename to include BOTH the date and the time?
Thanks
Andi
|