Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Range of cell

Hello everyone:

How can I know if the ranage selected is more than one
cell or a selection of diffrent ranges?

Cheers,

Andres
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Range of cell

Andres A wrote:
Hello everyone:

How can I know if the ranage selected is more than one
cell or a selection of diffrent ranges?

Cheers,

Andres

RangeName.Count 1

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Range of cell

Andres,

Forgot to answer the first part of your question.

"selection.rows.count" AND "selection.columns.count" will tell you if there
is more than 1 cell in the range.

"Selection.cells.Count" gives the total number of cells in the total
selection.

regards

JohnI

"Andres A" wrote in message
...
Hello everyone:

How can I know if the ranage selected is more than one
cell or a selection of diffrent ranges?

Cheers,

Andres



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Range of cell

Tom,

Thanks for that. I should have tested. I was going from memory which in this
case was faulty.

regards,

JohnI


"Tom Ogilvy" wrote in message
...
"selection.rows.count" AND "selection.columns.count" will tell you if

there
is more than 1 cell in the range.



? Range("A1,C9:M15,Z20").Rows.count
1

? range("A1,c9:M15,Z20").Columns.Count
1

You are correct aboutn

? range("A1,c9:M15,Z20").Count
79

--
Regards,
Tom Ogilvy



"JohnI in Brisbane" wrote in message
...
Andres,

Forgot to answer the first part of your question.

"selection.rows.count" AND "selection.columns.count" will tell you if

there
is more than 1 cell in the range.

"Selection.cells.Count" gives the total number of cells in the total
selection.

regards

JohnI

"Andres A" wrote in message
...
Hello everyone:

How can I know if the ranage selected is more than one
cell or a selection of diffrent ranges?

Cheers,

Andres







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
Find Last cell in Range when range is date format default105 Excel Discussion (Misc queries) 5 July 7th 09 03:11 PM
RANGE EXCEL copy cell that meets criteria in a range confused Excel Worksheet Functions 3 March 27th 08 01:41 PM
copy range and paste into every 3rd cell of new range thomsonpa New Users to Excel 4 December 3rd 07 01:47 PM
Referencing a named range based upon Range name entry in cell Barb Reinhardt Excel Worksheet Functions 14 June 20th 07 07:19 PM
Selecting range in list of range names depending on a cell informa Courreges Excel Discussion (Misc queries) 2 June 19th 06 10:59 AM


All times are GMT +1. The time now is 01:24 AM.

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

About Us

"It's about Microsoft Excel"