Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,388
Default Excel save date

I need to have a function in Eexcxel that will Automatically capture the save
date (like in Word) for version control. Format would be MMMM/DD/YYYY HH:MM
and would like it to be in footer. Please indicate the steps to program it
into excel as well.

Thank You

Dave
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Excel save date

Turn on the macro recorder and record yourself setting a footer. Then turn
off the macro recorder. Then just alter the code to concatentate some text

"current text " & format(now,"mmmm/dd/yyyy hh:mm")

You could then move that code to the beforesave event.

See Chip Pearson's page on events.

http://www.cpearson.com/excel/events.htm

--
Regards,
Tom Ogilvy

"Dave" wrote in message
...
I need to have a function in Eexcxel that will Automatically capture the

save
date (like in Word) for version control. Format would be MMMM/DD/YYYY

HH:MM
and would like it to be in footer. Please indicate the steps to program it
into excel as well.

Thank You

Dave



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 486
Default Excel save date

MsgBox ThisWorkbook.BuiltinDocumentProperties("Last save time")

Note that if the file has never been saved this will throw an error...
--
HTH...

Jim Thomlinson


"Tom Ogilvy" wrote:

Turn on the macro recorder and record yourself setting a footer. Then turn
off the macro recorder. Then just alter the code to concatentate some text

"current text " & format(now,"mmmm/dd/yyyy hh:mm")

You could then move that code to the beforesave event.

See Chip Pearson's page on events.

http://www.cpearson.com/excel/events.htm

--
Regards,
Tom Ogilvy

"Dave" wrote in message
...
I need to have a function in Eexcxel that will Automatically capture the

save
date (like in Word) for version control. Format would be MMMM/DD/YYYY

HH:MM
and would like it to be in footer. Please indicate the steps to program it
into excel as well.

Thank You

Dave




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Excel save date

As I recall, this property was not maintained by xl97. If the file is used
in both xl97 and higher versions, the value could be incorrect (updated in
later versions, but not in xl97). If it is only used in xl97, it would
raise and error.

Of course, the OP could maintain the property.

Chip Pearson's page on Builtin Document properties
http://www.cpearson.com/excel/docprop.htm
--
Regards,
Tom Ogilvy


"Jim Thomlinson" wrote in
message ...
MsgBox ThisWorkbook.BuiltinDocumentProperties("Last save time")

Note that if the file has never been saved this will throw an error...
--
HTH...

Jim Thomlinson


"Tom Ogilvy" wrote:

Turn on the macro recorder and record yourself setting a footer. Then

turn
off the macro recorder. Then just alter the code to concatentate some

text

"current text " & format(now,"mmmm/dd/yyyy hh:mm")

You could then move that code to the beforesave event.

See Chip Pearson's page on events.

http://www.cpearson.com/excel/events.htm

--
Regards,
Tom Ogilvy

"Dave" wrote in message
...
I need to have a function in Eexcxel that will Automatically capture

the
save
date (like in Word) for version control. Format would be MMMM/DD/YYYY

HH:MM
and would like it to be in footer. Please indicate the steps to

program it
into excel as well.

Thank You

Dave






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 486
Default Excel save date

Just wondering... How do you know/remember all of these things...
--
HTH...

Jim Thomlinson


"Tom Ogilvy" wrote:

As I recall, this property was not maintained by xl97. If the file is used
in both xl97 and higher versions, the value could be incorrect (updated in
later versions, but not in xl97). If it is only used in xl97, it would
raise and error.

Of course, the OP could maintain the property.

Chip Pearson's page on Builtin Document properties
http://www.cpearson.com/excel/docprop.htm
--
Regards,
Tom Ogilvy


"Jim Thomlinson" wrote in
message ...
MsgBox ThisWorkbook.BuiltinDocumentProperties("Last save time")

Note that if the file has never been saved this will throw an error...
--
HTH...

Jim Thomlinson


"Tom Ogilvy" wrote:

Turn on the macro recorder and record yourself setting a footer. Then

turn
off the macro recorder. Then just alter the code to concatentate some

text

"current text " & format(now,"mmmm/dd/yyyy hh:mm")

You could then move that code to the beforesave event.

See Chip Pearson's page on events.

http://www.cpearson.com/excel/events.htm

--
Regards,
Tom Ogilvy

"Dave" wrote in message
...
I need to have a function in Eexcxel that will Automatically capture

the
save
date (like in Word) for version control. Format would be MMMM/DD/YYYY
HH:MM
and would like it to be in footer. Please indicate the steps to

program it
into excel as well.

Thank You

Dave






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 to save excel file on previous date Fahad Excel Discussion (Misc queries) 1 March 25th 09 10:59 AM
Excel 2007 Changes date stamp on Save As Williams Excel Discussion (Misc queries) 4 November 6th 08 06:24 PM
Excel 2007 Changes date stamp on Save As Williams Excel Discussion (Misc queries) 3 October 7th 08 06:14 PM
Excel Macro save as date of last friday [email protected] Excel Discussion (Misc queries) 4 May 17th 06 10:52 PM
Excel :Save date function Elodie Excel Worksheet Functions 1 November 25th 04 04:25 PM


All times are GMT +1. The time now is 11:42 PM.

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"