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

Hello

Instead of

Range("d2:g40").Select

I would rather use the r1c1 format because it is easier to use integers to
define the range. Help seems to imply that only A1 notation is available
which I cannot believe would be true.

How might I do it?

Thanks

W


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Select Range using R1C1



instead of using strings...
why dont you set them directly:

with activesheet
.Cells(x,y).Resize(h,w)
or
.Rows(x).Resize(h)
or
.Columns(y).Resize(,w)






keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"verizon" wrote:

Hello

Instead of

Range("d2:g40").Select

I would rather use the r1c1 format because it is easier to use
integers to define the range. Help seems to imply that only A1
notation is available which I cannot believe would be true.

How might I do it?

Thanks

W




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

Range("d2:g40").Select

In r1c1 this would be

Range(cells(2,4):cells(40,7)

--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Select Range using R1C1

Looks like a small typo.
As written that would raise an error. The colon should be a comma:

Range(cells(2,4),cells(40,7))

--
Regards,
Tom Ogilvy

"Berend Botje " wrote in
message ...
Range("d2:g40").Select

In r1c1 this would be

Range(cells(2,4):cells(40,7))


---
Message posted from http://www.ExcelForum.com/



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Select Range using R1C1

Sorry... you're right.... should be a comm

--
Message posted from http://www.ExcelForum.com

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 selection with R1C1 Adam1 Chicago Excel Discussion (Misc queries) 6 November 8th 07 04:02 PM
help on Converting R1C1 to A1 and A1 to R1C1..tia sa2 temp Excel Discussion (Misc queries) 3 September 13th 07 08:31 AM
help on Converting R1C1 to A1 and A1 to R1C1..tia sa2 temp Excel Worksheet Functions 3 September 13th 07 08:31 AM
R1C1 to Range Jahson Excel Programming 3 February 17th 04 12:29 PM
Using Range with R1C1 notation in a macro J Excel Programming 1 January 23rd 04 04:46 AM


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