Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Saving file with current date

Is it possible to save my active workbook with the current date in it.
I am currently using the following code but it is not working

ActiveWorkbook.SaveAs Filename:="C:\Excel Test\Test & Format(Date
"mm-dd-yyyy") & .xls"

Thank you, so far you all have been a huge help to me!!

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Saving file with current date

You're missing some quotes

ActiveWorkbook.SaveAs Filename:="C:\Excel Test\Test" &
Format(Date,"mm-dd-yyyy") & ".xls"


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"rglasunow " wrote in message
...
Is it possible to save my active workbook with the current date in it.
I am currently using the following code but it is not working

ActiveWorkbook.SaveAs Filename:="C:\Excel Test\Test & Format(Date,
"mm-dd-yyyy") & .xls"

Thank you, so far you all have been a huge help to me!!!


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Saving file with current date

You da man Bob!!! It worked. thank yo

--
Message posted from http://www.ExcelForum.com

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
saving a file with a date pat67 Excel Worksheet Functions 3 October 8th 09 08:39 PM
Saving only current worksheet into new file BobC Excel Discussion (Misc queries) 3 January 9th 09 01:16 PM
Saving file as current month name automatically gold Excel Discussion (Misc queries) 2 August 25th 07 05:34 PM
Saving worksheet in new file with date AND cell value as file name michaelberrier Excel Discussion (Misc queries) 4 May 26th 06 08:05 PM
Saving a file with VBA that references current file name chilidog1000 Excel Programming 2 October 17th 03 08:14 PM


All times are GMT +1. The time now is 09:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"