I am looking for a way to run my macro automatically when a specific range of cells has any input change.
If cell range S11:S34 on Sheet1 has any changes I would like to run my PartBalance macro which affects Sheet2
I have tried using the following:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$S$11:$S$34" Then
Call PartBalance
End If
End Sub
I think I have something wrong because it will not run on it's own when the cell value changes. Please help. Thanks.
If cell range S11:S34 on Sheet1 has any changes I would like to run my PartBalance macro which affects Sheet2
I have tried using the following:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$S$11:$S$34" Then
Call PartBalance
End If
End Sub
I think I have something wrong because it will not run on it's own when the cell value changes. Please help. Thanks.