Now Function

Digitborn.com

Active Member
Joined
Apr 3, 2007
Messages
353
Hello,

How to keep the date in the cell when I use "Now()" function?

Example:

I use: =IF(A38<>"";NOW();"").
When i enter something in cell A38, I have the current date entered. I save and close the workbook. Two days later I open it, and now function recalculates the date. How to keep it. I know I can catch the cell data using VBA like Rangе("A38").Value in the Worksheet_Calculate event. These seems to me not a good way to achieve the desired result. Any clean ideas?
 
Both Now and Today are volatile.
Code:
Private Sub Worksheet_Change(ByVal Target as Range)
If Target.Address = "$A$38" Then Target.Offset(0,1)=Date
End Sub
OR, maybe for all of Column "A"
Code:
Private Sub Worksheet_Change(ByVal Target as Range)
If Target.Count > 1 Then Exit Sub
If Target.Column <> 1 Then Exit Sub
Cells(Target.Row,"B") = Date
End Sub
lenze
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top