J
Jayne22
Is there a way to store a range as a variable so that later I can go back to
that location? If so, what do you DIM the variable as?
For example, this is what I have so far:
DIM row1 as Long
Cells.Find(What:=Month_Year, After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
Selection.End(xlDown).Select
row1 = Cells(ActiveCell.Row + 1, ActiveCell.Column)
(at this point I have statements that insert values into cells near this
location, so I can't redo the same find)
And then later I try to go back to that spot:
Sheets("pivot table").Range(row1).Activate
that location? If so, what do you DIM the variable as?
For example, this is what I have so far:
DIM row1 as Long
Cells.Find(What:=Month_Year, After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
Selection.End(xlDown).Select
row1 = Cells(ActiveCell.Row + 1, ActiveCell.Column)
(at this point I have statements that insert values into cells near this
location, so I can't redo the same find)
And then later I try to go back to that spot:
Sheets("pivot table").Range(row1).Activate