I need to mimic key shortcuts to select a range that will vary every time. I managed to select a range and need to extend the selection to the entire rows of the selected range. A solution would be to just apply 'shift+spacebar'
Tried resize but I need to select the whole rows.
Sub Clean()
'fill an empty header to apply filter later
Range("A1").Copy
Range("H1").PasteSpecial Paste:=xlPasteValues
'stand on row 3 to then move to 2 with offset, work around
Range("E3").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Offset(-1, 0).Select
At this point I got a selection E2:E#, # being the last empty cell before my data starts. I need to extend the selection to the whole rows, which manually would do by pressing Shift+SpaceBar, then delete the entire rows. I couldn't find a way to keysend shift+SpaceBar