ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Saving file with current date (https://www.excelbanter.com/excel-programming/288944-saving-file-current-date.html)

rglasunow[_7_]

Saving file with current date
 
Is it possible to save my active workbook with the current date in it.
I am currently using the following code but it is not working

ActiveWorkbook.SaveAs Filename:="C:\Excel Test\Test & Format(Date
"mm-dd-yyyy") & .xls"

Thank you, so far you all have been a huge help to me!!

--
Message posted from http://www.ExcelForum.com


Bob Phillips[_6_]

Saving file with current date
 
You're missing some quotes

ActiveWorkbook.SaveAs Filename:="C:\Excel Test\Test" &
Format(Date,"mm-dd-yyyy") & ".xls"


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"rglasunow " wrote in message
...
Is it possible to save my active workbook with the current date in it.
I am currently using the following code but it is not working

ActiveWorkbook.SaveAs Filename:="C:\Excel Test\Test & Format(Date,
"mm-dd-yyyy") & .xls"

Thank you, so far you all have been a huge help to me!!!


---
Message posted from http://www.ExcelForum.com/




rglasunow[_8_]

Saving file with current date
 
You da man Bob!!! It worked. thank yo

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 02:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com