ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   what is the R1C1-style notation in Macro Language? (https://www.excelbanter.com/excel-programming/372656-what-r1c1-style-notation-macro-language.html)

Vincent

what is the R1C1-style notation in Macro Language?
 


Don Guillett

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
...




FunkySquid

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
...




All times are GMT +1. The time now is 01:04 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com