![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
Is there a way to have a cell report the date the file was last modifed? Thanks in advance.
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Look at the Excel Help topic for "View information about changes to a workbook".
|
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Quote:
Function FileLastMod() As String Dim FileDate As Double On Error Resume Next FileDate = FileDateTime(ThisWorkbook.FullName) If Err.Number = 0 Then FileLastMod = Format(FileDate, "dd/mm/yy hh:mm:ss") Else FileLastMod = "Error" End If End Function 'Place in a Module and call from worksheet as follows '=FileLastMod() ivan Ivan |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|