ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Range of a whole column in Cells syntax (https://www.excelbanter.com/excel-programming/327917-range-whole-column-cells-syntax.html)

Hal Styli

Range of a whole column in Cells syntax
 
Hello

Can someone please tell me how to access a whole column using cells().

For instance range("a1") =cells(1,1), what is the cells equivalent of
range("a:a")?

Thanks in advance.
--
Hal

Jim Thomlinson[_3_]

Range of a whole column in Cells syntax
 
Cells returns a range object and from there you can select the entire column

cells(1,1).entirecolumn

HTH

"Hal Styli" wrote:

Hello

Can someone please tell me how to access a whole column using cells().

For instance range("a1") =cells(1,1), what is the cells equivalent of
range("a:a")?

Thanks in advance.
--
Hal


Harald Staff

Range of a whole column in Cells syntax
 
Hi Hal

Cells are cells. Columns are columns. Rows are rows. Use
Columns(1)
as in
MsgBox Columns(1).Address

HTH. Best wishes Harald

"Hal Styli" skrev i melding
...
Hello

Can someone please tell me how to access a whole column using cells().

For instance range("a1") =cells(1,1), what is the cells equivalent of
range("a:a")?

Thanks in advance.
--
Hal





All times are GMT +1. The time now is 11:45 PM.

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