• 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.

Change the excel file name based on system date as suffix

paradise

Member
Hi,

How can I change the file name of my excelfile based on system date of computer.The prefix to system date would be in text(string).

With Rgds,
Suresh
 
If you mean when saving the file, you want to save filename with current date then it variable be something like below & use the variable with the SaveAs code to name your file

Code:
Dim MyFile As String

MyFile = "Test " & Format(Date, "DD/MM/YYYY")
 
My file name say for e.g is 'Test' which is in certain folder.

Is above is the complete code.If it is complete code then perhaps there is an error.
 
Back
Top