E
Ez Duzit
Hello all -
I have this macro that gets close to what I need, but falls short. I'm
trying to select a range from a found cell "A100" for example all the
way to a specified cell "A5", not just 20 rows up like my macro listed
below.
Thanks in advance.
Sub ActiveCellRange()
Cells.Find(What:= _
"Text to be found" _
, After:=ActiveCell, LookIn:=xlFormulas, LookAt:=xlPart,
SearchOrder:= _
xlByRows, SearchDirection:=xlNext, MatchCase:=True,
SearchFormat:=False). _
Activate
ActiveCell.Offset(-2, 0).Select
Dim MyRange As Range
Set MyRange = Range(ActiveCell, ActiveCell.Offset(-20, 0))
MyRange.Select
End Sub
I have this macro that gets close to what I need, but falls short. I'm
trying to select a range from a found cell "A100" for example all the
way to a specified cell "A5", not just 20 rows up like my macro listed
below.
Thanks in advance.
Sub ActiveCellRange()
Cells.Find(What:= _
"Text to be found" _
, After:=ActiveCell, LookIn:=xlFormulas, LookAt:=xlPart,
SearchOrder:= _
xlByRows, SearchDirection:=xlNext, MatchCase:=True,
SearchFormat:=False). _
Activate
ActiveCell.Offset(-2, 0).Select
Dim MyRange As Range
Set MyRange = Range(ActiveCell, ActiveCell.Offset(-20, 0))
MyRange.Select
End Sub