Date function
OK,
How about just the date?
--
BGC
"Jacob Skaria" wrote:
To record the timestamp you cannot use a formula..You will have to use a VBA
solution as mentioned in my earlier post.
If this post helps click Yes
---------------
Jacob Skaria
"BC" wrote:
Jacob,
I tried this, closed, then reopened. File became read-only. Once I opened,
the date changed again.
Here's the formula I'm using.
=if(m198=0,now())
--
BGC
"Jacob Skaria" wrote:
Select the sheet tab which you want to work with. Right click the sheet tab
and click on 'View Code'. This will launch VBE. Paste the below code to the
right blank portion. Get back to to workbook and try out.
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
If Not Application.Intersect(Target, Range("A1:A20")) Is Nothing Then
If Target.Count = 1 Then _
Range("C" & Target.Row) = Format(Now, "mmm dd, yyyy h:mm AMPM;@")
End If
Application.EnableEvents = True
End Sub
If this post helps click Yes
---------------
Jacob Skaria
"BC" wrote:
Hi all,
I want cell b1 to display the current date and time based on cell a1's
entry. I want the date to remain constant and not update unless a1 has been
changed.
I tried this and the date and time changes to current:
=if(a1=0,now())
Help!
--
BGC
|