Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 425
Default From active cell, select the next 10 rows down, 6 columns over.

From active cell, select the next 10 rows down, 6 columns over.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default From active cell, select the next 10 rows down, 6 columns over.

Range(Cells(activecell.Row,activecell.Column),
Cells(activecell.Row+10,activecell.Column+6)).sele ct

If this post helps click Yes
---------------
Jacob Skaria


"J.W. Aldridge" wrote:

From active cell, select the next 10 rows down, 6 columns over.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default From active cell, select the next 10 rows down, 6 columns over.

Range(Cells(activecell.Row,activecell.Column),
Cells(activecell.Row+10,activecell.Column+6)).sele ct

--
If this post helps click Yes
---------------
Jacob Skaria


"J.W. Aldridge" wrote:

From active cell, select the next 10 rows down, 6 columns over.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 425
Default From active cell, select the next 10 rows down, 6 columns over.

Mr. Jacob, that didn't work...
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default From active cell, select the next 10 rows down, 6 columns over.

It is not entirely clear from your question whether you want the
ActiveCell's row and column included in the new selection or not. If you
want them included...

ActiveCell.Resize(11, 7).Select

Note the 11 and 7 are your 10 and 6 plus one each. If you don't want them
included...

ActiveCell.Offset(1, 1).Resize(10, 6).Select

In any event... the Offset and Resize properties are the one's you will want
to play with.

--
Rick (MVP - Excel)


"J.W. Aldridge" wrote in message
...
From active cell, select the next 10 rows down, 6 columns over.




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 425
Default From active cell, select the next 10 rows down, 6 columns over.

thanx...

wanted to select the entire range, so the first one worked.

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default From active cell, select the next 10 rows down, 6 columns over

Try this.....it was too long...

Range(Cells(ActiveCell.Row, ActiveCell.Column), _
Cells(ActiveCell.Row + 10, ActiveCell.Column + 6)).Select


If this post helps click Yes
---------------
Jacob Skaria


"J.W. Aldridge" wrote:

Mr. Jacob, that didn't work...

  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default From active cell, select the next 10 rows down, 6 columns over

This is much easier to do using the Resize property of the Range object (the
ActiveCell in this case)...

ActiveCell.Resize(11, 7).Select

where the 11 and 7 are one more than the number of rows and columns to add
(the one being so that the 10 and 6 are in addition to the ActiveCell's row
and column).

--
Rick (MVP - Excel)


"Jacob Skaria" wrote in message
...
Try this.....it was too long...

Range(Cells(ActiveCell.Row, ActiveCell.Column), _
Cells(ActiveCell.Row + 10, ActiveCell.Column + 6)).Select


If this post helps click Yes
---------------
Jacob Skaria


"J.W. Aldridge" wrote:

Mr. Jacob, that didn't work...


  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default From active cell, select the next 10 rows down, 6 columns over

Thanks Rick..

If this post helps click Yes
---------------
Jacob Skaria


"Rick Rothstein" wrote:

This is much easier to do using the Resize property of the Range object (the
ActiveCell in this case)...

ActiveCell.Resize(11, 7).Select

where the 11 and 7 are one more than the number of rows and columns to add
(the one being so that the 10 and 6 are in addition to the ActiveCell's row
and column).

--
Rick (MVP - Excel)


"Jacob Skaria" wrote in message
...
Try this.....it was too long...

Range(Cells(ActiveCell.Row, ActiveCell.Column), _
Cells(ActiveCell.Row + 10, ActiveCell.Column + 6)).Select


If this post helps click Yes
---------------
Jacob Skaria


"J.W. Aldridge" wrote:

Mr. Jacob, that didn't work...



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
Row select mode to highlight active row of active cell Bart Fay[_2_] Excel Discussion (Misc queries) 0 May 11th 10 09:34 PM
How select active rows from A to D columns? ldiaz Excel Discussion (Misc queries) 2 October 2nd 08 04:36 PM
Select columns of active cell's row Cumberland[_5_] Excel Programming 3 June 28th 06 12:13 PM
Select Row of Active Cell Michael Smith Excel Programming 1 September 14th 05 10:08 PM
Select a range of columns based on active cell Tom Ogilvy Excel Programming 0 November 10th 03 05:09 PM


All times are GMT +1. The time now is 06:51 AM.

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"