#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 89
Default Areas

Hello,
I know that I can select the areas selected by using:

Selection.areas.count

Is there a way to know easily which areas are selected one by one? For
example, if I select columns A, C, and E, the above will be give me
selection.areas.count = 3. Is there a way of knowing the address of the
first area, then the second, etc.

Thanks,

Bill


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Areas

An area is just a range object, so you can use code like

Dim A As Range
For Each A In Selection.Areas
Debug.Print A.Address
Next A


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"Bill" wrote in message
ink.net...
Hello,
I know that I can select the areas selected by using:

Selection.areas.count

Is there a way to know easily which areas are selected one by
one? For example, if I select columns A, C, and E, the above
will be give me selection.areas.count = 3. Is there a way of
knowing the address of the first area, then the second, etc.

Thanks,

Bill



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
SUM of areas Natalie Excel Worksheet Functions 7 July 4th 09 01:08 PM
Print Areas Steve COR Excel Discussion (Misc queries) 3 August 31st 07 05:48 PM
Plot areas Lynda Charts and Charting in Excel 3 November 16th 06 08:42 AM
Benifit of AREAS LoveCandle Excel Worksheet Functions 15 August 2nd 06 07:41 AM
Selection and Areas Jac Tremblay Excel Programming 7 April 25th 04 06:46 PM


All times are GMT +1. The time now is 07:14 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"