How do I export a date&time in a macro-Transfer Spreadsheet name

G

Guest

="O:\Folder\Folder\FileName" & (Format(Now(),"yymmdd")) & ".xls"
I'm trying to transfer a spreadsheet but want to add the time to the date
because the spreadsheet may be run several times in a day, so I don't want it
overwritten. I've tried adding time by doing the (Format(Time())
expressions, but I get error messages.
 
S

Steve Schapel

Aleon,

You mean like this?...
="O:\Folder\Folder\FileName" & Format(Now(),"yymmddhhnn") & ".xls"
 

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