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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top