#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default =NOW()

When I insert the NOW function in my worksheet, it updates whenever I open
it. I only want the function to work when I hit "save" or update a cell in
the worksheet, so that the date/time indicate the last time someone
reviewed/changed it, not the last time it was simply opened.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 860
Default =NOW()

Hi,

NOW and other volatile functions don't just change when the file is
opened, they change every time the sheet is recalculated.

Take a look here for a workaround.
http://www.mcgimpsey.com/excel/timestamp.html

HTH
Martin


"f16pilot71" wrote in message
...
When I insert the NOW function in my worksheet, it updates whenever I open
it. I only want the function to work when I hit "save" or update a cell
in
the worksheet, so that the date/time indicate the last time someone
reviewed/changed it, not the last time it was simply opened.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 791
Default =NOW()

Hit Alt F11

Click On the "ThisWorkbook" object, then click on the left dropdown box and
Select Workbook
Click on The right dropdown box and select BeforeSave
Add this:
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Range("A1").Value = Now()
End Sub
This will place the result of Now() in Cell A1; change it to the cell you
want.
Note it won't execute on the first save, because is just saving the code,
but from then on it will execute only when saving the workbook.
If this posting was helpful, please click on the Yes button.
Regards,

Michael Arch.




"f16pilot71" wrote:

When I insert the NOW function in my worksheet, it updates whenever I open
it. I only want the function to work when I hit "save" or update a cell in
the worksheet, so that the date/time indicate the last time someone
reviewed/changed it, not the last time it was simply opened.

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



All times are GMT +1. The time now is 05:28 PM.

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"