View Single Post
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gord Dibben Gord Dibben is offline
external usenet poster
 
Posts: 22,906
Default automate date entry

medavino

Right-click on the worksheet tab and "View Code"

Copy/paste this code into that sheet module.

Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo ws_exit:
Application.EnableEvents = False
If Not Intersect(Target, Me.Range("A1:A10")) Is Nothing Then
With Target
If .Value < "" Then
.Offset(0, 1).Value = Format(Now, "dd mmm yyyy hh:mm:ss")
End If
End With
End If
ws_exit:
Application.EnableEvents = True
End Sub

Any time you make a change in a cell in A1:A10 range, the date/time will appear
in corresponding cell in column B


Gord Dibben MS Excel MVP

On Fri, 21 Dec 2007 07:24:02 -0800, medavino
wrote:

I have reread it several times but don't understand most of it. How / where
do I get the macro into s/s? Want to see if that works.
Thanks

"David Biddulph" wrote:

So in your change you removed the circular reference which stopped it from
updating. Read again the page to which you were referred (which explains
how the methos works), and try the method suggested there.
--
David Biddulph

"medavino" wrote in message
...
hi david.
once the function NOW is used it automatically updated when s/s is open or
f9, etc.
i used their formula
=IF(A1="","",IF(B1="",NOW(),B1))
my formula is
=IF(AL3=1,NOW(),"")

"David Biddulph" wrote:

Which of the methods suggested there are you using? Don't they each
remain
constant? Perhaps you need to look again at your modifications.
--
David Biddulph

"medavino" wrote in message
...
thank you. with modifications it works except that i need the
date/time
to
enter and then become constant and not update.
is that possible?

"T. Valko" wrote:

See if this helps:

http://www.mcgimpsey.com/excel/timestamp.html

--
Biff
Microsoft Excel MVP


"medavino" wrote in message
...
i am using excel 2003 and need to automatically insert date into a
cell
when
i update info in a row.
others need to know how current data in a row is.
any thoughts out there?
please keep in mind that although not a total beginner, certain
areas
in
excel i have never used.
thanks in advance.