how to log modification time of a cell?

J

Jenny

Hi,

I created an easy worksheet like:

Task1 FinishDate
Task2 FinishDate
.... ...

I would like to know if there is any better way than to manually inpu
the actual time. Is there any function that will do this? I do fil
in this table real-time. This means the date I modify a cell is th
FinishDate. In a word, I am looking for a function to keep track o
the last modification date of one cell. If anyone knows, please let m
know. Thanks
 
P

Paul B

Jenny, you could also do it with a macro like this

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
'***will put date in column B when something is put in A***
If Target.Count > 1 Then Exit Sub
If Target.Column = 1 Then
Target.Offset(0, 1).Value = Date()
End If
End Sub

To put in this macro right click on the worksheet tab and view code, in the
window that opens paste this code, press Alt and Q to close this window and
go back to your workbook. If you are using excel 2000 or newer you may have
to change the macro security settings to get the macro to run.
--
Paul B
Always backup your data before trying something new
Using Excel 97 & 2000
Please post any response to the newsgroups so others can benefit from it
** remove news from my email address to reply by email **
 

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

Top