[edit: retitled at request of moderator Winon]
I'm seeking a variation of
Range(ActiveCell, ActiveCell.End(xlToLeft)).Select (like control-shift-left arrow)
but to use when more than a single cell is selected.
To demonstrate:
In an empty sheet put a zero (or anything) in B1, B2 and D2
Go to A1
Go Control-shift-end (selecting everything through the bottom right, A1:D2)
(Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select)
Now the objective is to simulate Control-Shift-Left arrow.
If you do this with the keystroke you end up with A1:B2 selected. That's what I want.
But Range(ActiveCell, ActiveCell.End(xlToLeft)).Select only leaves A1 selected, so what works?
Maybe Range(selection, selection.End(xlToLeft)).Select
is a start in the right, um, left direction.
Bookmarks