Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jacob_F_Roecker
 
Posts: n/a
Default Save Workbook as Current Date/Time

OK I'm learning to USE the Record Macro feature on a spreadsheet and I need
the sheet to do two things:

I need to be able to have a macro SAVE the file as the current date/time
using a set formating.

At the moment I have a cell set up for the NOW() command that gets updated
at the beginning of the Macro. When I go to "Save As" the macro record
feature can't seem to compute that the value in the File Name block is the
value from another cell displaying only the result of the NOW() command.

I'll neet to make a button for it when I'm done. But I know there's a
tutorial online for the button.

My programming skills are very much in their infancy. So I don't understand
a whole lot of the lingo. I do appreciate anyone that's got an idea on how
to make this work.

-Jacob Roecker
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default Save Workbook as Current Date/Time

Try this

Activeworkbook.Saveas Format(Now,"yyyy-mm-dd hh-mm-ss")

Don't use / or : in the format, they are not legal characters in a filename.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Jacob_F_Roecker" wrote in message
...
OK I'm learning to USE the Record Macro feature on a spreadsheet and I

need
the sheet to do two things:

I need to be able to have a macro SAVE the file as the current date/time
using a set formating.

At the moment I have a cell set up for the NOW() command that gets updated
at the beginning of the Macro. When I go to "Save As" the macro record
feature can't seem to compute that the value in the File Name block is the
value from another cell displaying only the result of the NOW() command.

I'll neet to make a button for it when I'm done. But I know there's a
tutorial online for the button.

My programming skills are very much in their infancy. So I don't

understand
a whole lot of the lingo. I do appreciate anyone that's got an idea on

how
to make this work.

-Jacob Roecker



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
How do I save an Excel workbook so that cells referencing another. williejoeshaver Excel Discussion (Misc queries) 1 March 11th 05 09:44 PM
How do you only save 4 pages of the workbook Cathy Excel Worksheet Functions 1 February 1st 05 07:27 PM
i made change in a current workbook and accidentally save it, can. angel Excel Discussion (Misc queries) 1 January 4th 05 01:11 AM
Lotus 123 save as excel workbook and maintain formatting? Don Excel Discussion (Misc queries) 0 December 8th 04 12:11 AM
Can't save chart as object in current sheet Ann Scharpf Charts and Charting in Excel 1 December 3rd 04 11:24 PM


All times are GMT +1. The time now is 06:55 PM.

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

About Us

"It's about Microsoft Excel"