Having the current time inserted w/o updating the current time

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anyone know how I would put in the current time without having it update
on every save?

For example I have a formula where a time automatically gets inserted in a
cell, when another cell gets typed in.
Now if an hour passes I want to be able to keep that original time.
Does anyone know how? I am currently using an If statement with the "Now"
function, but it is not serving my purpose.

Thanks in advance.
 
Hi sherobot

You can insert the time like this
CTRL : (colon)

The date like this
CTRL ; (semicolon)
 
You can use an event macro. Play with the below code to get the correct cell
to populate in your sheet:

Private Sub Worksheet_Change(ByVal Target As Range)
[A1] = Now()
End Sub
 

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