Export a file with today's date

G

Grek

Hello,

I would like to export my excell workbook with today's date as name.

For instance nameofmyexcellsworbook 20040428.xls

No problem to do the export in VBA. The only problem is that I don'
know how to deal with the date...

Even If I put today() in a cell and then export with the value of thi
cell it doesn't work...

Could you help me please ?

Thank you very much in advance,

Gre
 
T

Tom Ogilvy

? "ABCD " & format(date,"yyyymmdd") & ".xls"
ABCD 20040429.xls


might give you some ideas.
 
G

Grek

Hi,

Thank you very much for your response.

I ve just tried that and it seems to work :


ActiveCell.Value = Format(Now(), "yyyymmdd")

Thanks again,

Gre
 
Top