Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 123
Default Automatically select entire rows on pressing down and up-arrow key

Dear Experts:

The following code snippets selects the entire row of the currently
selected cell

Rows(ActiveCell.Row).Select

Is it possible to link this entire row selection command to the up and
down arrows of the keyboard?

For example:
The currently selected cell is B5. Pressing the down-arrow-key brings
me to B6. The entire sixth row is to be selected automatically without
manually activating the selection macro.

Is this feasible?

Help is much appreciated.

Thank you very much in advance. Regards, Andreas
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 621
Default Automatically select entire rows on pressing down and up-arrow key

Here is sheet event code which will select the entire row of any cell you arrow
to or mouse-click.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Rows(ActiveCell.Row).Select
End Sub

But, I don't think it is what you want.

Do you also want to be able to select single cells or ranges which are not an
entire row?

How specific do you need your selection(s) to be?


Gord Dibben MS Excel MVP

On Tue, 9 Nov 2010 13:50:18 -0800 (PST), andreashermle
wrote:

Dear Experts:

The following code snippets selects the entire row of the currently
selected cell

Rows(ActiveCell.Row).Select

Is it possible to link this entire row selection command to the up and
down arrows of the keyboard?

For example:
The currently selected cell is B5. Pressing the down-arrow-key brings
me to B6. The entire sixth row is to be selected automatically without
manually activating the selection macro.

Is this feasible?

Help is much appreciated.

Thank you very much in advance. Regards, Andreas

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 123
Default Automatically select entire rows on pressing down and up-arrow key

On 9 Nov., 23:19, Gord Dibben wrote:
Here is sheet event code which will select the entire row of any cell you arrow
to or mouse-click.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
* * Rows(ActiveCell.Row).Select
End Sub

But, I don't think it is what you want.

Do you also want to be able to select single cells or ranges which are not an
entire row?

How specific do you need your selection(s) to be?

Gord Dibben * * MS Excel MVP

On Tue, 9 Nov 2010 13:50:18 -0800 (PST), andreashermle
wrote:

Dear Experts:


The following code snippets selects the entire row of the currently
selected cell


Rows(ActiveCell.Row).Select


Is it possible to link this entire row selection command to the up and
down arrows of the keyboard?


For example:
The currently selected cell is B5. Pressing the down-arrow-key brings
me to B6. The entire sixth row is to be selected automatically without
manually activating the selection macro.


Is this feasible?


Help is much appreciated.


Thank you very much in advance. Regards, Andreas


Dear Gord,

thank you very much for your professional support. This is exactly
what I wanted.

This is great support.

Regards, Andreas
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How move arrow keys from cell to cell and NOT entire col/rows Arrow keys: cell to cell not entire row New Users to Excel 1 November 13th 09 05:19 PM
in excel, pressing shift+ctrl+arrow no longer works? any idea why excel user Excel Worksheet Functions 1 August 12th 09 03:04 PM
select entire rows using a contains comparison - an example [email protected] Excel Programming 0 April 5th 06 11:43 PM
How to do the following by pressing the down arrow or up arrow key? cyberdude Excel Discussion (Misc queries) 4 December 14th 05 01:29 PM
How to do the following by pressing the down arrow or up arrow key? cyberdude Excel Programming 1 December 12th 05 02:54 PM


All times are GMT +1. The time now is 08:14 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"