ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   .Cells(Row,Column) parameters (https://www.excelbanter.com/excel-programming/358219-cells-row-column-parameters.html)

Trebor Retrac

.Cells(Row,Column) parameters
 
In VB can the Column parameter in .Cells(Row,Column) be expressed in
numerical format to signify an area of contiguous columns. If so, what is the
expression format. I would like to express Columns 4 thru 21 without using a
do-loop.

Bob Carter
Douglas, MA
USA

Otto Moehrbach

.Cells(Row,Column) parameters
 
Do something like:
Range(Cells(Row,4),Cells(Row,21))
HTH Otto
"Trebor Retrac" wrote in message
...
In VB can the Column parameter in .Cells(Row,Column) be expressed in
numerical format to signify an area of contiguous columns. If so, what is
the
expression format. I would like to express Columns 4 thru 21 without using
a
do-loop.

Bob Carter
Douglas, MA
USA




Bob Phillips[_6_]

.Cells(Row,Column) parameters
 
or

Cells(Row,4).Resize(,10)

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Otto Moehrbach" wrote in message
...
Do something like:
Range(Cells(Row,4),Cells(Row,21))
HTH Otto
"Trebor Retrac" wrote in message
...
In VB can the Column parameter in .Cells(Row,Column) be expressed in
numerical format to signify an area of contiguous columns. If so, what

is
the
expression format. I would like to express Columns 4 thru 21 without

using
a
do-loop.

Bob Carter
Douglas, MA
USA






Trebor Retrac

.Cells(Row,Column) parameters
 


Thank You both Otto and Bob.
Bob Carter


All times are GMT +1. The time now is 03:39 PM.

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