2Aug/102
Navigation through Excel sheet – End Of Data
Quickly move to the end or beginning of big chunks of data.
Magic shortcut is Ctrl + <arrow_key>
Ctrl + Up - Moves cursor up until empty cell
Ctrl + Down - Moves cursor down until empty cell
Ctrl + Left - Moves cursor left until empty cell
Ctrl + Right - Moves cursor right until empty cell
When holding Ctrl + Shift + <array keys> it moves cursor and extends the selection area. Very practical example to select rectangular data within TWO strokes:
- While holding "Ctrl + Shift" push "Left"
- While still holding "Ctrl + Shift" push "Down"
Date data end within VBA code
The same keyboard trick is available from VBA code
Sheets("Sheet1").Cells(1, 1).End(xlToRight)Sheets("Sheet1").Cells(1, 1).End(xlDown)Sheets("Sheet1").Cells(1, 1).End(xlToLeft)Sheets("Sheet1").Cells(1, 1).End(xlUp)
Did you find this post useful? Click +1 below
My Google Profile+




English
Русский
August 20th, 2010 - 03:57
Learn Excel basics
August 20th, 2010 - 08:55
actually, I am shocked how many people do not know these basics. VBA code is very useful for detecting data blocks.