Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Skyvalley
 
Posts: n/a
Default display last date document saved

How can I have a cell display the last date and time the sheet was saved?
  #2   Report Post  
bpeltzer
 
Posts: n/a
Default display last date document saved

You can attach a macro to enter the date/time when the workbook is saved.
From the menu bar, Tools Macro Visual Basic Editor. Then View Project
Explorer to bring up the project window, probably on the top-left of your
screen. DOuble-click on the Excel icon labeled 'This Workbook'. Then in the
code window, use the first drop-down to select Workbook, and the second to
select BeforeSave.
VBA will create the subroutine template; you just need to fill in the body.
The sub should look like:
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Worksheets("Sheet1").Activate
Range("A1") = Now()
End Sub

You can change 'Sheet1' and 'A1' to suit your needs. Note that this won't
work unless macros are enabled (which in turn requires that security -- Tools
Macros Security -- is not set to high).

HTH. --Bruce

"Skyvalley" wrote:

How can I have a cell display the last date and time the sheet was saved?

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 display the 'Date Modified' in an Excel worksheet header DC Solah Excel Discussion (Misc queries) 3 July 10th 06 06:03 PM
Update a formula based on date worksheet was saved Kevin McQuain Excel Worksheet Functions 0 October 6th 05 02:06 PM
search for latest date Sue Excel Worksheet Functions 2 August 2nd 05 11:09 PM
Dates are saved with a future date Eates-a-Lot New Users to Excel 2 July 22nd 05 02:25 PM
ERROR MESSAGE DOCUMENT NOT SAVED MoTo Excel Discussion (Misc queries) 3 April 13th 05 06:05 PM


All times are GMT +1. The time now is 11:40 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"