save with a macro

  • Thread starter Thread starter mfrancom
  • Start date Start date
M

mfrancom

is it possible to build a macro in which it is possible to
save a a file with a fixed name and a variable date (today
date)?
 
Sub NameFile()

Const strFile as String = "FixedPart"

ActiveWorkbook.SavesAs Filename:= strFile & _
Format(Date,"mmddyyyy") & ".xls"

End Sub

Tested using Excel 97SR2 on Windows 98SE,

HTH
Paul
 

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

Back
Top