Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do I insert 'date modified' for a whole spreadsheet in the foo

I've found some code on the boards about how to have one cell say when
another cell was modified. But I'm looking to have the something ideally in
the header or footer that states "Date Modified: 3/13/2006" for example and
it updates each time any cell is modified in the spreadsheet. I suppose this
might work to if the date inserted in the code was when the spreadsheet was
last saved if that is the only possibility.

Any help is greatly appreciated.

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default How do I insert 'date modified' for a whole spreadsheet in the foo

Maybe this will do it

Option Explicit

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Dim ws As Worksheet
For Each ws In Me.Worksheets
ws.PageSetup.LeftHeader = "Date Modified " & _
Format(Date, "dd mmm yyyy")
Next ws
End Sub


This is workbook event code.
To input this code, right click on the Excel icon on the worksheet
(or next to the File menu if you maximise your workbooks),
select View Code from the menu, and paste the code

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"nicycle" wrote in message
...
I've found some code on the boards about how to have one cell say when
another cell was modified. But I'm looking to have the something ideally

in
the header or footer that states "Date Modified: 3/13/2006" for example

and
it updates each time any cell is modified in the spreadsheet. I suppose

this
might work to if the date inserted in the code was when the spreadsheet

was
last saved if that is the only possibility.

Any help is greatly appreciated.

Thanks!



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
Insert date when data is modified Horatio J. Bilge, Jr. Excel Discussion (Misc queries) 3 October 25th 07 04:59 PM
insert the date the file was last modified Ted M H Excel Discussion (Misc queries) 5 September 2nd 07 03:28 PM
How do I insert the date modified in a spreadsheet footer? cnadwodny Excel Discussion (Misc queries) 6 May 25th 06 06:25 PM
Need to insert file modified date of Excel spreadsheet in a cell dj in Mass. Excel Discussion (Misc queries) 0 March 23rd 06 09:41 PM
insert the date the file was last modified Hoff Excel Discussion (Misc queries) 8 November 21st 05 01:31 PM


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