View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Tim_S[_2_] Tim_S[_2_] is offline
external usenet poster
 
Posts: 3
Default Excell macro Date help

I made a macro to perform a "save as" and give it a file name as you see
below. I now need it to create the file name based on the date ...

ActiveWorkbook.SaveAs "c:\mypath\currentdump.xls"

I need it to save the file as the followint format.. (replace the mmddyyyy
with the date...)

ActiveWorkbook.SaveAs "c:\mypath\mmddyyyy.xls"

What do I need to do to accomplish this?

Thanks