I have been able to successfully trigger the Worksheet_Change Event by monitoring one target cell, but how would I write the code if I want the Event to run anytime a cell in a given range is changed?
This is what i tried, but I get an error that says, "Compile Error: Argument not Optional"
This is what i tried, but I get an error that says, "Compile Error: Argument not Optional"
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = True
On Error GoTo Choice
Choice: Application.EnableEvents = False
On Error GoTo Reenable
If Target.Range = "B16:G49" Then
Call Macro1
End If
Reenable: Application.EnableEvents = True
End Sub