I have a change event sub below and I want to trap changes made on columns A to B only.
How do I use Intersect on this sub?
many thanks
How do I use Intersect on this sub?
many thanks
Code:
Dim rngLastChange As Range
Private Sub Worksheet_Change(ByVal Target As Range)
Set rngLastChange = Target
If [E2] > [F2] Then
MsgBox "E2 is greater than F2", vbCritical
Application.Undo
Exit Sub
End If
End Sub