J
Jayne22
I have declared a range in a prior statement, selected that range, and now
want to find a value within that range. For some reason, the program is
looking outside of that range. What am I doing wrong?
With ActiveCell
Set range1 = Range(ActiveCell, .Offset(100, 0))
End With
Range(range1.Address).Select
Cells.Find(What:=Location, After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
want to find a value within that range. For some reason, the program is
looking outside of that range. What am I doing wrong?
With ActiveCell
Set range1 = Range(ActiveCell, .Offset(100, 0))
End With
Range(range1.Address).Select
Cells.Find(What:=Location, After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate