Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Bob Provis
 
Posts: n/a
Default How to have:= NOW () date/time change only if updated and saved

How may I set a shared excel file to only update a present time and date
field when the sheet has actually been modified and saved?
OS = MS 2000 pro
Excel = 2000
  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

You need VBA to write it when saved

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean)
Range("A1").Value = Format(Now, "dd mmm yyyy hh:mm:ss")
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

RP
(remove nothere from the email address if mailing direct)


"Bob Provis" <Bob wrote in message
...
How may I set a shared excel file to only update a present time and date
field when the sheet has actually been modified and saved?
OS = MS 2000 pro
Excel = 2000



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
date/time stamp Jan Excel Worksheet Functions 7 July 14th 05 01:04 PM
Cell Change Color - Need Help alani New Users to Excel 3 June 29th 05 03:50 PM
change cell shading whenever contents different from previous cell zooeyhallne Excel Discussion (Misc queries) 3 June 6th 05 09:59 PM
conditional cell shading when a change occurs zooeyhall Excel Discussion (Misc queries) 1 June 6th 05 05:14 PM
how do i make a date change automatically if i change one before . dpl7579 Excel Discussion (Misc queries) 1 January 11th 05 09:21 PM


All times are GMT +1. The time now is 08:35 AM.

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"