ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   renaming a template file on startup (https://www.excelbanter.com/excel-programming/368505-renaming-template-file-startup.html)

Johannes Zellner

renaming a template file on startup
 
Hello,

how do I rename a template file after opening it, e.g.
to the current date plus some extension?

--
Johannes

NickHK

renaming a template file on startup
 
Johannes,
You can't "rename" an open file, only save it with another filename.
e.g. ThisWorkbook.SaveAs Format(Now(),"dd-mm-yyyy") & ".xls"

Or .SaveCopyAs, depending on your needs.

NickHK

"Johannes Zellner" wrote in message
.. .
Hello,

how do I rename a template file after opening it, e.g.
to the current date plus some extension?

--
Johannes





All times are GMT +1. The time now is 05:15 AM.

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