Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How do I display the last updated date in the page header?

I need to display the date the workbook was last modified in the page header
when it's printed.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default How do I display the last updated date in the page header?

Hi,

Alt + F11 to open VB editor. Double click 'This workbook' and paste this in
on the right. Change the range to suit.

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Sheets("Sheet1").Range("A1").Value = _
ActiveWorkbook.BuiltinDocumentProperties(12).Value
End Sub

Mike

"Aging Hippie" wrote:

I need to display the date the workbook was last modified in the page header
when it's printed.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default How do I display the last updated date in the page header?

There is no "modified" property

Best you can get is last saved time.

Sub printit()
ActiveSheet.PageSetup.RightHeader = "&8Last Saved : " & _
Format(ThisWorkbook.BuiltinDocumentProperties("Las t Save Time"), _
"yyyy-mmm-dd hh:mm:ss")
End Sub


Gord Dibben MS Excel MVP

On Fri, 18 Jul 2008 12:48:01 -0700, Aging Hippie
wrote:

I need to display the date the workbook was last modified in the page header
when it's printed.


Reply
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
Display "Last updated date" for the Workbook (without using a macr CRayF Excel Worksheet Functions 3 October 28th 09 08:55 PM
Display date when worksheet last updated? Barrie Bowdler Excel Worksheet Functions 1 October 18th 06 09:33 AM
How do I have a cell display the date its row was last updated? castell Excel Discussion (Misc queries) 2 September 19th 06 04:43 PM
formula to display "updated" date cindi Excel Worksheet Functions 3 January 5th 05 08:03 PM
Combine & Display “Fixed” & “Automatically Updated” Date Parts texcel Excel Worksheet Functions 1 November 1st 04 05:38 PM


All times are GMT +1. The time now is 04:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"