OldManDemosthenes
New Member
- Joined
- Apr 19, 2011
- Messages
- 38
I feel like this should be an easy one but then here I am....
I am trying to run a macro when something on a worksheet changes
I've tried both of the following codes with no luck:
and
Thanks
I am trying to run a macro when something on a worksheet changes
I've tried both of the following codes with no luck:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
[INDENT]If Not Intersect(Target, Worksheets("Inputs").Range("A1:H114")) Is Nothing Then[/INDENT]
[INDENT][INDENT]Call Macro1[/INDENT][/INDENT]
[INDENT]End If[/INDENT]
Application.EnableEvents = True
End Sub
and
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
[INDENT][INDENT]Call Macro1[/INDENT][/INDENT]
Application.EnableEvents = True
End Sub
Thanks