LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default 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
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
excel: subtract updated time from earilier Boswell Excel Worksheet Functions 2 October 18th 08 05:13 AM
Time or row cell updated 525047[_2_] Excel Worksheet Functions 2 March 23rd 08 10:09 PM
date and time updated automatically Richard Excel Worksheet Functions 1 February 5th 06 04:48 AM
Current date and time updated automatically Richard Excel Discussion (Misc queries) 7 February 4th 06 09:00 PM
How do I print the last date a worksheet was updated in a footer? merlingirl Excel Discussion (Misc queries) 0 January 5th 06 04:25 PM


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