ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Save As style (https://www.excelbanter.com/excel-discussion-misc-queries/2770-save-style.html)

Dimitris from Greece

Save As style
 
I run every day a workbook and I need to save it (using a macro) with name,
the date value, e.g. 20041231.xls
I can do that? Which is the syntax for this macro?


Frank Kabel

Hi
try something like
activeworkbook.saveas filename:=format(date,"yyymmdd") & ".xls"


--
Regards
Frank Kabel
Frankfurt, Germany

Dimitris from Greece wrote:
I run every day a workbook and I need to save it (using a macro) with
name, the date value, e.g. 20041231.xls
I can do that? Which is the syntax for this macro?





All times are GMT +1. The time now is 07:17 PM.

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