"now" date/time

buford49

New Member
Joined
Mar 21, 2002
Messages
1
I am trying to use the "now" formula to insert different date/time in several columns.

Problem I have is when it is entered, subsequent entries always change previously entered data. How do I prevent changes to previously entered "now" entries?
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
The following code should work:

With Application
.Calculation = xlManual
.CalculateBeforeSave = False
End With

Be careful with it, because it will stop all automatic calculations.
_________________
Hope this helps.
Kind regards, Al.
This message was edited by Al Chara on 2002-03-22 19:50
 
Upvote 0
I use the "Now" function in VBA to get my time stamps. Using this method prevents the date from changing. Here is a sample of the code i use:

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Target.Column = 1 Then
Target.Offset(0, 1) = Now
End If
End Sub

When a cell in column A is changed, this code puts the date and time into the cell next to that cell in column B. You can play with this code to get your desired effect. Just insert this code into your sheet's code. Also, instead of Now, you could use Date to just give the date.

Hope that helps
This message was edited by robfo0 on 2002-03-22 19:48
 
Upvote 0

Forum statistics

Threads
1,214,620
Messages
6,120,554
Members
448,970
Latest member
kennimack

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