ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Using Range with R1C1 notation in a macro (https://www.excelbanter.com/excel-programming/288867-using-range-r1c1-notation-macro.html)

J

Using Range with R1C1 notation in a macro
 
I have found plenty of references for using the Range
property in a macro ie: Range("A1:B5").select. In
addition I have used Cells(Irow,ICol) plenty of times.
Now I want to set a Range in a similar fashion as I did
the Cells using variables. Does anyone have any
suggestions?

Thank you

Vasant Nanavati

Using Range with R1C1 notation in a macro
 
Not sure what you are looking for. Perhaps:

Range(Cells(Row1, Column1), Cells(Row2, Column2))

--

Vasant


"J" wrote in message
...
I have found plenty of references for using the Range
property in a macro ie: Range("A1:B5").select. In
addition I have used Cells(Irow,ICol) plenty of times.
Now I want to set a Range in a similar fashion as I did
the Cells using variables. Does anyone have any
suggestions?

Thank you





All times are GMT +1. The time now is 12:19 PM.

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