Excel Macro Save as with date in file name

Thread Solved

Join Date: Oct 2005
Posts: 1,283
Reputation: roryt will become famous soon enough roryt will become famous soon enough 
Solved Threads: 14
roryt's Avatar
roryt roryt is offline Offline
Nearly a Posting Virtuoso

Excel Macro Save as with date in file name

 
0
  #1
Oct 10th, 2006
I have posted this thread in the microsoft software forum as well but with no luck. If anyone can tell me how I can save a active excel file using a macro to save it in a folder using the current date as the file name. I hope that was clear. I know no VBA at all sorry...

Any help will be appreciated.

Thanks
PhotoShopthis
FlyingPen
If I have helped you please add to my reputation
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 1
Reputation: njreid is an unknown quantity at this point 
Solved Threads: 1
njreid njreid is offline Offline
Newbie Poster

Re: Excel Macro Save as with date in file name

 
0
  #2
Jan 16th, 2007
Originally Posted by roryt View Post
I have posted this thread in the microsoft software forum as well but with no luck. If anyone can tell me how I can save a active excel file using a macro to save it in a folder using the current date as the file name. I hope that was clear. I know no VBA at all sorry...

Any help will be appreciated.

Thanks
This will save with a value of a cell and todays date

Sub save()
ActiveWorkbook.SaveAs Filename:=Range("B11").Value & Format(Date, "mmdd")
End Sub
Last edited by njreid; Jan 16th, 2007 at 2:54 pm.
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 1,283
Reputation: roryt will become famous soon enough roryt will become famous soon enough 
Solved Threads: 14
roryt's Avatar
roryt roryt is offline Offline
Nearly a Posting Virtuoso

Re: Excel Macro Save as with date in file name

 
0
  #3
Jan 16th, 2007
Thanks for the post, but I have already found a perfect answer and I will try and remember to post the VBA when i can find it. Cheers
PhotoShopthis
FlyingPen
If I have helped you please add to my reputation
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 1
Reputation: leecker is an unknown quantity at this point 
Solved Threads: 0
leecker leecker is offline Offline
Newbie Poster

Re: Excel Macro Save as with date in file name

 
0
  #4
Jul 9th, 2009
Hi, New here.
I tried several different statements and keep getting an error.
Compile error
Wrong number of arguments or invalid property assignment.

It highlights the Format property.

I did look in tools, references for anything missing and there was none.
What am I missing?

Thanks

Originally Posted by njreid View Post
This will save with a value of a cell and todays date

Sub save()
ActiveWorkbook.SaveAs Filename:=Range("B11").Value & Format(Date, "mmdd")
End Sub
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC