D
Douglas
Frank,
Disclaimer: VB is not one of my strengths. That said,VB
complained about the "Me.Range" statement -- any idea why?
Thanks again,
Doug
(Below is the code you provided)
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
If Intersect(Target, Me.Range("A1")) Is Nothing Then Exit
Sub
On Error GoTo CleanUp:
With Target
If .value then
Application.EnableEvents = False
' enter your code or call a different sub
end if
End With
CleanUp:
Application.EnableEvents = True
End Sub
Disclaimer: VB is not one of my strengths. That said,VB
complained about the "Me.Range" statement -- any idea why?
Thanks again,
Doug
(Below is the code you provided)
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
If Intersect(Target, Me.Range("A1")) Is Nothing Then Exit
Sub
On Error GoTo CleanUp:
With Target
If .value then
Application.EnableEvents = False
' enter your code or call a different sub
end if
End With
CleanUp:
Application.EnableEvents = True
End Sub