Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
dhspeller
 
Posts: n/a
Default Inserting Change Document Date

Is there a way to insert the date a document was/is changed as opposed to the
"current" date when the document is opened?

I'd like to indicate when actual changes to a spreadsheet occured instead of
just indicating every time the document was opened.

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Inserting Change Document Date

Maybe you could use a little macro that runs each time someone clicks File|Save?

Option Explicit
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
With Me.Worksheets("sheet1").Range("A1")
.Value = Now
.NumberFormat = "mm/dd/yyyy hh:mm:ss"
End With
End Sub

This goes under the ThisWorkbook module.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

dhspeller wrote:

Is there a way to insert the date a document was/is changed as opposed to the
"current" date when the document is opened?

I'd like to indicate when actual changes to a spreadsheet occured instead of
just indicating every time the document was opened.

Thanks


--

Dave Peterson
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
How do I create a schedule from a list of dates ? Gavin Morris Charts and Charting in Excel 2 October 28th 10 04:08 PM
Change Date Values Snakeoids Excel Discussion (Misc queries) 1 November 1st 05 11:22 PM
How do I get Excel date to change from 1/1/1900? Macdad Excel Worksheet Functions 6 August 25th 05 06:43 PM
How to change a excel document into a word document? wannaknow Excel Discussion (Misc queries) 1 July 27th 05 09:37 PM
How do I set date to change automatically on invoices created wit. Angel New Users to Excel 3 November 30th 04 04:10 AM


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