ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Column References (https://www.excelbanter.com/excel-programming/272812-column-references.html)

Donald Lloyd

Column References
 
Hi,

How would I reference a range of columns using R1C1 notation.

Columns("1:10") , form example, doesn,t work - Rows("1:10") does

Thanks and regards,

Don Lloyd

--




Rob Barnard

Column References
 
Hi Don,

You could try referencing the range using this notation:

Range(Cells(1,1),Cells(1,10)).EntireColumn

This will select columns 1:10 as per your example.

:-)

Rob
-----Original Message-----
Hi,

How would I reference a range of columns using R1C1

notation.

Columns("1:10") , form example, doesn,t work - Rows

("1:10") does

Thanks and regards,

Don Lloyd

--



.


Donald Lloyd

Column References
 
Thanks Rob

It worked - makes life a lot easier.

I still have a feeling that there may be a more direct reference.
For example, Columns(10) is a valid reference.

Don
--

"Rob Barnard" wrote in message
...
Hi Don,

You could try referencing the range using this notation:

Range(Cells(1,1),Cells(1,10)).EntireColumn

This will select columns 1:10 as per your example.

:-)

Rob






All times are GMT +1. The time now is 08:05 AM.

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