Thread: Absolute Dates
View Single Post
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Private Sub Worksheet_Change(ByVal Target As Range)
Const WS_RANGE As String = "A1:H10"

On Error GoTo ws_exit:
Application.EnableEvents = False
If Target.Column = 2 Then
Target.Offset(0, -1).Value = Format(Date, "dd mmm yyyy")
End If

ws_exit:
Application.EnableEvents = True
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.



--

HTH

RP
(remove nothere from the email address if mailing direct)


"colm1976" wrote in message
...
I WOULD LIKE TO CREATE A WORKSHEET WHERE THE DATE IS AUTOMATICALLY PUT

INTO A
CELL WHENEVER THE OPERATOR INPUTS INFORMATION INTO ANOTHER CELL... I.E.

CELL
A IS THE DATE OF INPUT... CELL B IS WHERE THE OPERATOR INPUTS

INFORMATION...
BUT I DON'T WANT TO HAVE THE OPERATOR INPUT THE DATEE - NOR DO I WANT IT
REFRESHED EVERY TIME I OPEN THE FILE... ANY HELP???? THANKS IN ADVANCE!