ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Cell designation (https://www.excelbanter.com/excel-programming/364604-cell-designation.html)

Ed

Cell designation
 
I heard that "Range" can be eliminated in designating a range of cells
by just enclosing the range in brackets.

Range("A1:C2") can be replaced by ["A1:B2"]

I can't get it to work. What am I doing wrong?

Also is there a source to show the ways that cells may be designated?

Ed

excelent

Cell designation
 
[A1:B2]





"Ed" skrev:

I heard that "Range" can be eliminated in designating a range of cells
by just enclosing the range in brackets.

Range("A1:C2") can be replaced by ["A1:B2"]

I can't get it to work. What am I doing wrong?

Also is there a source to show the ways that cells may be designated?

Ed


JimMay

Cell designation
 
Try leaving out the " " 's
Like [A1:B2]


"Ed" wrote in message
:

I heard that "Range" can be eliminated in designating a range of cells
by just enclosing the range in brackets.

Range("A1:C2") can be replaced by ["A1:B2"]

I can't get it to work. What am I doing wrong?

Also is there a source to show the ways that cells may be designated?

Ed



Tom Ogilvy

Cell designation
 
in my research, this is 7 times slower than using range - it varies based
on the context of the usage. Maybe it is more obvious if you use the
equivalent

set rng = Evaluate("A1:B2")

--
Regards,
Tom Ogilvy

"Ed" wrote in message
...
I heard that "Range" can be eliminated in designating a range of cells
by just enclosing the range in brackets.

Range("A1:C2") can be replaced by ["A1:B2"]

I can't get it to work. What am I doing wrong?

Also is there a source to show the ways that cells may be designated?

Ed




Ed

Cell designation
 
Thanks to both.

Ed




On Sat, 17 Jun 2006 21:07:09 +0000, "JimMay" wrote:

Try leaving out the " " 's
Like [A1:B2]


"Ed" wrote in message
:

I heard that "Range" can be eliminated in designating a range of cells
by just enclosing the range in brackets.

Range("A1:C2") can be replaced by ["A1:B2"]

I can't get it to work. What am I doing wrong?

Also is there a source to show the ways that cells may be designated?

Ed



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

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