Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default .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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,090
Default .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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default .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





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default .Cells(Row,Column) parameters



Thank You both Otto and Bob.
Bob Carter
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display cells(text) in one column based on cells which are present inother column [email protected] Excel Discussion (Misc queries) 1 May 12th 08 01:40 PM
Copying a column of single cells into a column of merged cells [email protected] Excel Discussion (Misc queries) 1 August 16th 06 01:18 PM
Counting cells using multiple parameters tuph Excel Discussion (Misc queries) 3 June 19th 06 06:53 AM
Count cells in one range based on parameters in another range dave roth Excel Worksheet Functions 2 March 29th 05 05:33 PM
macro to transpose cells in Column B based on unique values in Column A Aaron J. Excel Programming 3 October 8th 04 02:29 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"