BradCustom
IS-IT--Management
Hi,
I'm trying to have a cell auto fill with the current date and time; I can get it to work with a single click but I'm not sure how to change the code to require a double click. Below is the code that works for a single click.
Any ideas on how to change this to require a double click would be greatly appreicated.
Thanks!!
I'm trying to have a cell auto fill with the current date and time; I can get it to work with a single click but I'm not sure how to change the code to require a double click. Below is the code that works for a single click.
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim MyRange As Range
Dim IntersectRange As Range
Set MyRange = Range("H3:I2300")
Set IntersectRange = Intersect(Target, MyRange)
On Error GoTo SkipIt
If IntersectRange Is Nothing Then
Exit Sub
Else
Target = Format(Now, "mm/dd/yy hh:nn")
End If
SkipIt:
Exit Sub
End Sub
Any ideas on how to change this to require a double click would be greatly appreicated.
Thanks!!