M
Mathew P Bennett
Good Evening All,
I was yesterday sent some simple code from here yesterday,
(cheers Jim), however I am a newcomer to code,
and cannot correct it, with my limited knowledge.
Error in line 3
Private Sub CommandButton1_Click()
'Worksheet_Change(ByVal Target As Range)
If Target.Address = Range("datecell").Address Then
If LCase(Target.Value) = "today" Then
Target.Value = Format(Now, "dd/mm/yy")
End If
End If
End Sub
Any help, as usual most appreciated.
Cheers,
Mathew
I was yesterday sent some simple code from here yesterday,
(cheers Jim), however I am a newcomer to code,
and cannot correct it, with my limited knowledge.
Error in line 3
Private Sub CommandButton1_Click()
'Worksheet_Change(ByVal Target As Range)
If Target.Address = Range("datecell").Address Then
If LCase(Target.Value) = "today" Then
Target.Value = Format(Now, "dd/mm/yy")
End If
End If
End Sub
Any help, as usual most appreciated.
Cheers,
Mathew