Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Last Time Updated in Footer
All, I am perplexed with this one ...
I am trying to put a footer in my workbook that will show the last time the file was saved (as opposed to the [date] & [time] functions that show the time printed). I have created the following code and put it in my Personal workbook, BUT, it forces me to remember to run this each time I save the file. Is there something like a [datestamp] variable I can put in my footer that will dynamically update? Any other thoughts? Thanks!! Sub TimeStampFooter() On Error GoTo handler With ActiveWorkbook Filename = .Path & "\" & .Name timestamp = FileDateTime(Filename) numsheets = .Worksheets.Count For x = 1 To numsheets Sheets(x).PageSetup.RightFooter = "&8Last Updated: " & timestamp Sheets(x).PageSetup.LeftFooter = "&8" & Filename Next x End With Exit Sub : handler MsgBox ("Error - please ensure file is saved before contiuing") Exit Sub End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
excel: subtract updated time from earilier | Excel Worksheet Functions | |||
Time or row cell updated | Excel Worksheet Functions | |||
date and time updated automatically | Excel Worksheet Functions | |||
Current date and time updated automatically | Excel Discussion (Misc queries) | |||
How do I print the last date a worksheet was updated in a footer? | Excel Discussion (Misc queries) |