Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Recording and saving dates in Excel

I use the formula =if(<cell_ref="X";=today();"") to determine when a report
was changed. However, every time I open the file, the formula always returns
todays date (naturally !!).
How do I record and save as a fixed entry the date the <cell_ref was changed?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Recording and saving dates in Excel

Bobito,

Copy the code below, right-click the sheet tab, select "View Code" and paste the code into the
window that appears. Change the A2:A1000 to the range address of the cells with the formula
described below, and anytime they first calculate to show a date and not "", they will automatically
convert to a date value.

HTH,
Bernie
MS Excel MVP

Private Sub Worksheet_Calculate()
Dim myC As Range
For Each myC In Range("A2:A1000")
If myC.HasFormula And myC.Value < "" Then myC.Value = myC.Value
Next myC
End Sub


"Bobito" wrote in message
...
I use the formula =if(<cell_ref="X";=today();"") to determine when a report
was changed. However, every time I open the file, the formula always returns
todays date (naturally !!).
How do I record and save as a fixed entry the date the <cell_ref was changed?



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
Excel: Concatenate Daily Recording Jeff[_7_] Excel Discussion (Misc queries) 3 September 2nd 07 10:02 PM
Saving a file while recording a macro Richard Champlin Excel Discussion (Misc queries) 6 September 1st 07 01:08 AM
How do I make the Stop Recording bar pop up when recording macros J Excel Worksheet Functions 1 January 10th 06 08:46 PM
saving dates\invoice numbers R S via OfficeKB.com Excel Discussion (Misc queries) 1 April 6th 05 11:14 PM
Recording time in Excel Trish Hodge Excel Discussion (Misc queries) 1 February 2nd 05 08:33 PM


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