concreteinterface
Board Regular
- Joined
- Jul 10, 2008
- Messages
- 144
I am using the following code:
Sub AutoFileSaveWithAutoName()
myFile = Range("A1").Value
ActiveWorkbook.SaveAs "\\server\users\john\Desktop\" & myFile
End Sub
After "myFile = Range("A1").Value" I want to put in the current date so it will read "Blah Blah Blah 05-30-11"
I've tried "myFile = Range("A1").Value & (Date)" and "myFile = Range("A1").Value & document.write(Date)" and did not work.
I really don't know what to use. Any solutions?
Sub AutoFileSaveWithAutoName()
myFile = Range("A1").Value
ActiveWorkbook.SaveAs "\\server\users\john\Desktop\" & myFile
End Sub
After "myFile = Range("A1").Value" I want to put in the current date so it will read "Blah Blah Blah 05-30-11"
I've tried "myFile = Range("A1").Value & (Date)" and "myFile = Range("A1").Value & document.write(Date)" and did not work.
I really don't know what to use. Any solutions?