Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default Select Range

How do I select the range that starts 5 cells below the current selection
down 300 cells. ie. Current cell c5 select C10:c300.
Thanks for your help, you guts are great!
Jodie
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default Select Range

Ok you have lost me... Is the 300 a static number or should your question
have been Current C5 then Select C10 - C305... If the latter then try...

range(activecell.offset(5,0), activecell.offset(300, 0)).select

HTH

"Jodie" wrote:

How do I select the range that starts 5 cells below the current selection
down 300 cells. ie. Current cell c5 select C10:c300.
Thanks for your help, you guts are great!
Jodie

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Select Range

If instead you actually do want it always to end in row 300, make it:
range(activecell.offset(5,0), activecell.offset(300-activecell.row, 0)).select

"Jim Thomlinson" wrote:

Ok you have lost me... Is the 300 a static number or should your question
have been Current C5 then Select C10 - C305... If the latter then try...

range(activecell.offset(5,0), activecell.offset(300, 0)).select

HTH

"Jodie" wrote:

How do I select the range that starts 5 cells below the current selection
down 300 cells. ie. Current cell c5 select C10:c300.
Thanks for your help, you guts are great!
Jodie

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 770
Default Select Range

Jodie,

Depending on the interpretation of your question - either down 300 rows or
down to row 300, try these:

ActiveCell.Offset(5, 0).Resize(300, 1).Select
or
ActiveCell.Offset(5, 0).Resize(296 - ActiveCell.Row, 1).Select

Note that the second will error if your activecell is in row 296 or higher.

hth,

Doug Glancy

"Jodie" wrote in message
...
How do I select the range that starts 5 cells below the current selection
down 300 cells. ie. Current cell c5 select C10:c300.
Thanks for your help, you guts are great!
Jodie



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 can change range to select active rows instead of :=Range("S10 ldiaz Excel Discussion (Misc queries) 7 August 29th 08 03:52 PM
When entering data into a range of cells, select the entire range. Q Excel Discussion (Misc queries) 0 September 26th 07 04:36 AM
Select Using Range vijaya Excel Discussion (Misc queries) 1 November 2nd 05 07:33 PM
Range select GG Excel Programming 1 February 16th 05 06:35 PM
Select Sheet then Select Range Gee[_2_] Excel Programming 3 May 27th 04 10:10 PM


All times are GMT +1. The time now is 04:17 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"