#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Save Date

How can I update the value in a cell that represents the last date the
workbook was saved?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default Save Date

On May 8, 3:40 pm, Marty wrote:
How can I update the value in a cell that represents the last date the
workbook was saved?


Try saving this in the code section of the ThisWorkbook object ...

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, _
Cancel As Boolean)
ActiveWorkbook.Worksheets(1).Range("A2").Value = Now()
End Sub


Adjust the location to suit.

HTH,

Tom Lavedas
===========
http://members.cox.net/tglbatch/wsh/
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
Last Save Date Fordbfilm Excel Discussion (Misc queries) 1 June 24th 09 05:22 PM
Save Date tomen24 Excel Worksheet Functions 1 June 2nd 09 05:58 PM
Recovering File Info Specifically Save Date or Print Date Gadgetgw Excel Discussion (Misc queries) 4 October 6th 08 08:43 PM
save as future date eg expected delivery date ryan Excel Discussion (Misc queries) 0 June 21st 07 03:35 PM
save with date ksnapp[_43_] Excel Programming 3 April 6th 04 11:09 AM


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