ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Selection By Shift & Arrow In VBA (https://www.excelbanter.com/excel-discussion-misc-queries/230348-selection-shift-arrow-vba.html)

FARAZ QURESHI

Selection By Shift & Arrow In VBA
 
What code enlarge the current selection as by only Shift + Arrow. In other
words, I want the code to only select the currently active cells plus the
ones below, like Shift+DownArrow, instead of entering a specific range?

OssieMac

Selection By Shift & Arrow In VBA
 
Record the macro to do what you want and you will have the syntax.
--
Regards,

OssieMac


"FARAZ QURESHI" wrote:

What code enlarge the current selection as by only Shift + Arrow. In other
words, I want the code to only select the currently active cells plus the
ones below, like Shift+DownArrow, instead of entering a specific range?


Jacob Skaria

Selection By Shift & Arrow In VBA
 
Activecell.Resize(2,4).Select

will extend the selection from active cell to two rows down and 4 columns to
right
--
If this post helps click Yes
---------------
Jacob Skaria


"FARAZ QURESHI" wrote:

What code enlarge the current selection as by only Shift + Arrow. In other
words, I want the code to only select the currently active cells plus the
ones below, like Shift+DownArrow, instead of entering a specific range?


FARAZ QURESHI

Selection By Shift & Arrow In VBA
 
Recording doesn't help my dear. It returns the cell references and not the
actual step.

"OssieMac" wrote:

Record the macro to do what you want and you will have the syntax.
--
Regards,

OssieMac


"FARAZ QURESHI" wrote:

What code enlarge the current selection as by only Shift + Arrow. In other
words, I want the code to only select the currently active cells plus the
ones below, like Shift+DownArrow, instead of entering a specific range?



All times are GMT +1. The time now is 07:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com