Insert Date and time in Cell

  • Thread starter Thread starter Eric
  • Start date Start date
E

Eric

Hello,

I am looking for a line of code that I could add to the end of my macro that
would insert the date and time the macro was first run into a cell named
"vLeadWriteDate". Any help would be great.
 
If you only want the first occurance, then

If vLeadWriteDate > "" The
'Do nothing
Else
vLeadWriteDate = now
End If
 
I'll get this right pretty soon. This should do it:

If Range("vLeadWriteDate") > "" The
'Do nothing
Else
Range("vLeadWriteDate") = now
End If
 
Back
Top