ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Last Modification Date (https://www.excelbanter.com/excel-worksheet-functions/89968-last-modification-date.html)

Hal

Last Modification Date
 
I would like to create a formula that puts the date the file was last
saved/updated.

Any help is appreciated

Hal

Alan

Last Modification Date
 
You can't do it with a formula, you'd need VBA code like in 'This Workbook'

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean)
Sheet1.Range("A1") = Date
End Sub

Regards,
Alan.

"Hal" wrote in message
...
I would like to create a formula that puts the date the file was last
saved/updated.

Any help is appreciated

Hal




Bob Phillips

Last Modification Date
 
'-----------------------------------------------------------------
Function DocProps(prop As String)
'-----------------------------------------------------------------
Application.Volatile
On Error GoTo err_value
DocProps = ActiveWorkbook.BuiltinDocumentProperties _
(prop)
Exit Function
err_value:
DocProps = CVErr(xlErrValue)
End Function

and enter in a cell such as
=DocProps ("last author")
or
=DocProps ("last save time")



--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Hal" wrote in message
...
I would like to create a formula that puts the date the file was last
saved/updated.

Any help is appreciated

Hal





All times are GMT +1. The time now is 05:08 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com