Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Nic Nic is offline
external usenet poster
 
Posts: 25
Default Can excel update date when document last changed?

I am trying to figure out how to have a date showing in excel for when
document was last updated. I know you can have date in the footer but that
just shows current date when document is opened. I want date to only change
to current if document has changed.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Can excel update date when document last changed?


Hi Nic

Would this help you out
Sub date_last_modified()
date_modified = ActiveWorkbook.BuiltinDocumentProperties("Last Save
Time")
date_modified = Format(date_modified, "dd/mm/yyyy")
'MsgBox date_modified
'or insert in a cell of your choice
'range("c1").select
'activecell=date_modified
''
'or insert in a center footer
For Each wsheet In Sheets
'the default date format is m/d/yy h:m:s AM/PM
'alternate format is m/d/yy h:mm am/pm
date_modified = Format(date_modified, "dd/mm/yyyy")
wsheet.PageSetup.CenterFooter = "Last Modified: " &
date_modified
Next wsheet

End Sub


--
jetted
------------------------------------------------------------------------
jetted's Profile: http://www.excelforum.com/member.php...o&userid=17532
View this thread: http://www.excelforum.com/showthread...hreadid=565155

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
Update Excel table in Word automatically from data in Excel yvonnedemulder Excel Discussion (Misc queries) 1 December 6th 05 06:51 PM
date format in excel not in line with control panel regional setti GrahamR Excel Discussion (Misc queries) 3 August 2nd 05 06:48 PM
Excel date field link to Word Earl Excel Discussion (Misc queries) 1 July 13th 05 11:20 PM
Excel enters date as a text format Kane Excel Discussion (Misc queries) 3 March 22nd 05 09:20 PM
How to embed Word document into Excel and retain sizing, formatti. Kent Excel Discussion (Misc queries) 0 February 2nd 05 07:37 PM


All times are GMT +1. The time now is 06:40 AM.

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"