I have a range of values in a column which I am targeting.
Once any of the values in that range changes, it is supposed to call a macro.
The macro I am calling works but my change event is not getting recognized. Is there something wrong with my code?
My change even macro is located on the sheet where the change event is happening:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$H$5:$H$32" Then
Call SetAxes
End If
End Sub
Do I need to be more specific with the range address?
Worksheet_calculatedoes not haveByVal Target As Rangeand you cannot just add it expecting it to work.Worksheet_Changedidn't do anything eitherWorksheet_Calculateand simply called the macro and it works.