I want to activate a macro on a change in a range.
The following code works fine except I want a variable last row (Where B100
currently is).
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("B1:B100")) Is Nothing Then
MsgBox "Updating sheets"
Call Thickborders2
End If
End Sub
The B100
in the range is dependent on the last row with text in it.