Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default what is the R1C1-style notation in Macro Language?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default what is the R1C1-style notation in Macro Language?

how about
range(cells(1,2),cells(2,5))

--
Don Guillett
SalesAid Software

"Vincent" wrote in message
...



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default what is the R1C1-style notation in Macro Language?

When using cells, it refers to the row and column in the following way:
cells(row_number, column_number)

So if you update your code to:
Range(Cells(1, 2), Cells(2, 5)).Select

then this will select the cells B1:E2

cells(1,2) = B1 and cells(2,5) = E2

Hope this helps.

FunkySquid

Don Guillett wrote:
how about
range(cells(1,2),cells(2,5))

--
Don Guillett
SalesAid Software

"Vincent" wrote in message
...


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 do I change sheet notation from R1C1 style to A1 style in XL 2 Sherlock1506 Setting up and Configuration of Excel 1 December 5th 06 03:22 PM
can a1 reference style and r1c1 style be used in same formula? rjagga Excel Worksheet Functions 1 September 17th 06 10:58 AM
Range R1C1 notation & the problem with my Macro skiptabor Excel Programming 2 May 31st 05 02:05 PM
Using Range with R1C1 notation in a macro J Excel Programming 1 January 23rd 04 04:46 AM
Macro records in R1C1 style Otto Moehrbach[_3_] Excel Programming 2 July 23rd 03 03:35 PM


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