• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Macro to change file name daily

Anar

Member
Hello,


Can anyone suggest a code to change the date in Excel file name daily.

File name is in this format: FileName_Date

FileName will stay the same each day, Date should change every day


BR,

Anar
 
This post should be saved in VBA & Macros forum, sorry for that.

I could not edit it and save in VBA & Macros forum
 
[pre]
Code:
Activeworkbook.SaveAs "myfile_" & Format(Date,"yyyy_mm_dd")
[/pre]
 
Back
Top