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


What would be the correct code for the following range :

Range A12:D24

count1= 12
count2=24

I am writing the following , but it does not work :
Range ( "A & count1 : D" & count2).Select

Thanks,

Moises
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Range with numerical data

Use this

Range("A" & count1 & ":D" & count2).Select



--
Regards Ron de Bruin
http://www.rondebruin.nl


"Moises" wrote in message ...

What would be the correct code for the following range :

Range A12:D24

count1= 12
count2=24

I am writing the following , but it does not work :
Range ( "A & count1 : D" & count2).Select

Thanks,

Moises



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Range with numerical data

Almost there!

Range ( "A & count1 & ": D" & count2).Select


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Moises" wrote in message
...

What would be the correct code for the following range :

Range A12:D24

count1= 12
count2=24

I am writing the following , but it does not work :
Range ( "A & count1 : D" & count2).Select

Thanks,

Moises



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
Range sort with numerical ranking Steve Excel Worksheet Functions 5 July 30th 09 04:01 PM
Sum used in macro where range stops at first non numerical cell Carol Excel Worksheet Functions 1 July 11th 09 03:57 AM
Entering numerical range Vi Excel Discussion (Misc queries) 5 July 6th 07 10:38 PM
Determing a range from numerical data Moises Excel Programming 2 July 19th 05 06:30 PM
Select all cells in a range with a certain numerical value nathan Excel Programming 3 August 11th 04 09:01 PM


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