Rowland Hamilton
Active Member
- Joined
- Nov 13, 2009
- Messages
- 250
Folks:
How do I "
" without the "End" or
to the next visible cell?
I know "
" gets me to the next populated cell or end of contiguous data and
gets me to the cell right above my active cell, but I need to get to the next visible cell above my active cell, wich is broken up by a collapsed group of cells.
The issue is I have hundreds of grouped cells, I can find the subtotal for the group I want with:
But I want the top row of my copy range to be the location of the above subtotal which is the next visible cell above the ActiveCell (note: not labeled as subtotals).
Once I set the top and bottom rows, i can ungroup and copy the data.
Thank you, Rowland
VBA Excel, Arrow keys, grouped rows, visible cells, offset
How do I "
Code:
ActiveCell.End(xlUp).Select
Code:
ActiveCell.Offset(-1, 0).Select
I know "
Code:
ActiveCell.End(xlUp).Select
Code:
ActiveCell.Offset(-1, 0).Select
The issue is I have hundreds of grouped cells, I can find the subtotal for the group I want with:
Code:
Columns("B:B").Select
Selection.Find(What:="555DIVI3232", After:=ActiveCell, LookIn:=xlFormulas _
, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
But I want the top row of my copy range to be the location of the above subtotal which is the next visible cell above the ActiveCell (note: not labeled as subtotals).
Once I set the top and bottom rows, i can ungroup and copy the data.
Thank you, Rowland
VBA Excel, Arrow keys, grouped rows, visible cells, offset