Auto date stamp once only

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

Guest

I wish to create a register that when a cell is changed/data entered date stamps/records in another cell and remains that date no matter how many times the work book is opened or closed - have tried NOW, TODAY but these all change when the workbook is opened on a different day. PLease help
 
Telsys,

Paste the following code into the sheet module for the sheet.

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("A1")) Is Nothing Then
Range("A2") = Now()
End If
End Sub

It's better to name the cells (Name box, or Insert - Name - Define), then
refer to them by name:

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("MyCell")) Is Nothing Then
Range("MyDate") = Now()
End If
End Sub

That way, if they get moved, your code still works
--
Earl Kiosterud
mvpearl omitthisword at verizon period net
-------------------------------------------

Telsys NZ said:
I wish to create a register that when a cell is changed/data entered date
stamps/records in another cell and remains that date no matter how many
times the work book is opened or closed - have tried NOW, TODAY but these
all change when the workbook is opened on a different day. PLease help
 
Hi
you may also have a look at
http://www.mcgimpsey.com/excel/timestamp.html

--
Regards
Frank Kabel
Frankfurt, Germany

Telsys NZ said:
I wish to create a register that when a cell is changed/data entered
date stamps/records in another cell and remains that date no matter how
many times the work book is opened or closed - have tried NOW, TODAY
but these all change when the workbook is opened on a different day.
PLease help
 

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

if/then insert date but don't want automatic updates 7
Auto Stamp Date 13
Date Stamp 7
Time Stamp 8
inserting datestamps 1
addind date stamp 0
Creating custom stamps in .pdf Adobe documents 1
Date Stamp in Footer 1

Back
Top