Save as w/ Time Stamp

G

Guest

ActiveWorkbook.SaveAs Filename:= _
"UpLoad-" & Now & ".txt", _
FileFormat:=xlText, CreateBackup:=False

I am not seeing how to format the characters generated from “Now†to allow a
valid save…

Perplexed,
Arturo
 
S

Steve

Depends what you wish to get.

"UpLoad-" & Format(Now, "YYYY-MM-DD-hh:mm") & ".txt"

will give you:

UpLoad-2005-02-22-11:29.txt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top