P
Pablo
I am needing to determine if a selected cell is within a certain range. Below
is something that I have tried, but it only returns a 400 error.
Sub FindRange()
Dim rngMyRange As Range
Set rngMyRange = Worksheets("Sheet1").Range(A1, G20)
If ActiveCell.Select = rngMyRange Then
MsgBox ("Good Job")
Else
MsgBox ("Out of Bounds")
End If
End Sub
is something that I have tried, but it only returns a 400 error.
Sub FindRange()
Dim rngMyRange As Range
Set rngMyRange = Worksheets("Sheet1").Range(A1, G20)
If ActiveCell.Select = rngMyRange Then
MsgBox ("Good Job")
Else
MsgBox ("Out of Bounds")
End If
End Sub