|
-
Apr 22nd, 2004, 10:14 AM
#1
Thread Starter
PowerPoster
Range.Areas question
Hi,
If I have a range from an Excel worksheet, how do I make more Areas than it starts with?
If I create a range from A1:A6, and try to access the Range's Areas collection, Areas(1) seems to contain only "A1". How do I make or define more Areas, like:
Set Range.Areas(2) = "A2:A4"
or something like that. Do I have to programatically select a new range to create a new area?
Please shed some light on this confusing topic!
Dave
-
Apr 23rd, 2004, 02:20 AM
#2
Addicted Member
!. 'Areas' relate to *selected* cells where there are several *unconnected* ranges, such as achieved by holding down the Ctrl key prior to selection using the mouse. If there is only one selected range, there is only one Area.
2. If you want to break a single range into several parts I suggest you use named ranges. When using VBA there is rarely a need to use Select, and then only when it is necessary for the user to see something on scren.
Regards
BrianB
-------------------------------
-
Apr 23rd, 2004, 08:23 AM
#3
Thread Starter
PowerPoster
OK thanks for the advice, I'll try that.
Dave
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|