Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Member
 
Posts: 70
Default Count down a certain number of rows?

I feel like there's a simple solution for this, but I can't think of it.

I need to select columns A:C starting at A7 and then select 10 down from there. So if I were to hardcode it, it would be from A7 to C16, but to make it dynamic, I just want to hardcode the A7:C7 and count down 10 rows to arrive at C16.
  #2   Report Post  
Junior Member
 
Posts: 6
Default

Quote:
Originally Posted by KeriM View Post
I feel like there's a simple solution for this, but I can't think of it.

I need to select columns A:C starting at A7 and then select 10 down from there. So if I were to hardcode it, it would be from A7 to C16, but to make it dynamic, I just want to hardcode the A7:C7 and count down 10 rows to arrive at C16.
Range("A7:C7").Resize(10).Select


E.

Last edited by plinius-et : October 26th 12 at 10:47 PM
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default Count down a certain number of rows?

It happens that KeriM formulated :
I feel like there's a simple solution for this, but I can't think of it.


I need to select columns A:C starting at A7 and then select 10 down from
there. So if I were to hardcode it, it would be from A7 to C16, but to
make it dynamic, I just want to hardcode the A7:C7 and count down 10
rows to arrive at C16.


Look at Resize...

Range("$A$7:$C$7").Resize(10)

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 587
Default Count down a certain number of rows?

hi,

Range("A7").Resize(10, 3).Select

--
isabelle


Le 2012-10-26 15:07, KeriM a écrit :
I feel like there's a simple solution for this, but I can't think of it.


I need to select columns A:C starting at A7 and then select 10 down from
there. So if I were to hardcode it, it would be from A7 to C16, but to
make it dynamic, I just want to hardcode the A7:C7 and count down 10
rows to arrive at C16.





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default Count down a certain number of rows?

isabelle explained :
hi,

Range("A7").Resize(10, 3).Select

--
isabelle



That's what I started to post but then I re-read and caught this...

"I just want to hardcode the A7:C7 and count down 10 rows.."

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 587
Default Count down a certain number of rows?

i also hesitate between these two possibilities but .. this is just fine
like that, Kerim has the choice ;-)

--
isabelle

Le 2012-10-26 18:42, GS a écrit :
isabelle explained :
hi,

Range("A7").Resize(10, 3).Select

--
isabelle



That's what I started to post but then I re-read and caught this...

"I just want to hardcode the A7:C7 and count down 10 rows.."


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
Count Number of Rows Boying Opaw Excel Worksheet Functions 1 October 8th 09 04:46 AM
COUNT NUMBER OF ROWS Keep It Simple Stupid Excel Worksheet Functions 2 February 9th 07 06:54 PM
Count how many Rows ago a particular number was hit rhhince Excel Worksheet Functions 1 January 13th 07 09:06 PM
Count number of rows, where non relevant rows are hidden Pieter Excel Discussion (Misc queries) 2 November 8th 06 12:24 PM
Count rows and insert number to count them. Mex Excel Discussion (Misc queries) 6 August 23rd 06 02:29 AM


All times are GMT +1. The time now is 05:35 AM.

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

About Us

"It's about Microsoft Excel"