Save Date
How can I update the value in a cell that represents the last date the
workbook was saved? |
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/ |
All times are GMT +1. The time now is 11:57 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com