I'm trying to write a sub worksheet_Change sub which will run certain code if a certain cell or range of cells are changed. The range is K11:K65000 - so I have the following
Obviously the msgbox is just for debugging. But I get an error message saying Applicaton-defined or object-defined error (whatever that means
). What am I doing wrong, how do I refer to the range of cells?
Irish Poetry - Karen O'Connor
Get your Irish Poetry Published
Garten und Landschaftsbau
Code:
Private Sub Worksheet_Change(ByVal target As Range)
If target.Range(K11, K65000) Then
MsgBox ("it worked")
End If
End Sub
Irish Poetry - Karen O'Connor
Get your Irish Poetry Published
Garten und Landschaftsbau