Current Time

  • Thread starter Thread starter ub
  • Start date Start date
U

ub

Hi

What I want to do is that if I enter a value in a cell (Ex A1), in cell A2,
I want the current system time to automatically stamp and save it.
Please advise if this is possible.

Thanks
 
Private Sub Worksheet_Change(ByVal Target As Range)
If Range("A1").Value <> "" Then
Range("A2").Value = Time
End If
End Sub
 
=IF(A1>0,NOW(),0)
that will put the current time if a value of >0 is entered
it will be a funny number, if you format the cell Time it will be a time
 
Hi
Please advise, if the time will be saved.
Because NOW(), gives thecurrent time.
Example, If I had entered data in cell A1 yeterday and today when I go in
the sheet. Will I see the time in cell a2 that of yesterday or the current
time.
 
I dont want a different time , when I tab to another cell or reopen the sheet.
Is there any way I can store the value of now() in any cell.
 
Thanks a lot, It works
Please advise if I can use to automaticaly enter time in my sheet.
Example, if user has entered a value in cell a1, the current time should
stamp autmatically in cell a2 and the time value should be saved.

Thanks
 
That would need VBA. You'll see suggestions in the archives of this
newsgroup.
 

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

Similar Threads

Conditional Formatting 3
Seperate data 5
Copy By Variable 4
Impacting a cell 4
date 2
auto fill current time 5
If formula and Data Validation parallely 1
Skip Reference Sequences during copy 3

Back
Top