PC Review


Reply
Thread Tools Rate Thread

Automatically select entire rows on pressing down and up-arrow key

 
 
andreashermle
Guest
Posts: n/a
 
      9th Nov 2010
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
 
Reply With Quote
 
 
 
 
Gord Dibben
Guest
Posts: n/a
 
      9th Nov 2010
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 <(E-Mail Removed)>
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

 
Reply With Quote
 
andreashermle
Guest
Posts: n/a
 
      15th Nov 2010
On 9 Nov., 23:19, Gord Dibben <phnor...@shaw.ca> wrote:
> Here is sheet event code which will select the entire row of any cell youarrow
> 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 <andreas.her...@gmx.de>
> 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


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 Microsoft Excel New Users 1 13th Nov 2009 05:19 PM
how to select entire rows desired by user Anupam Soral Microsoft Excel Programming 3 15th Jul 2008 12:29 PM
Use find to select entire rows with a cell with that value =?Utf-8?B?RnJhbmt5ODg=?= Microsoft Excel Worksheet Functions 2 30th Mar 2007 06:38 PM
select entire rows using a contains comparison - an example aztecbrainsurgeon@yahoo.com Microsoft Excel Programming 0 5th Apr 2006 11:43 PM
Macro to select 4 entire rows and then delete rows Scott Viney Microsoft Excel Discussion 3 22nd Sep 2005 07:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:26 PM.