Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default (no subject)

I want to save multiple possibilities for a range and be able to pop one
back into the range. Is there a way to do this other than saving the
ranges to an array? Can't use copy, paste because there are more than one.

Have Myrange = (Cells(1,1),cells(70,70))

then have 6 different versions of myrange.

thanks
John
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 257
Default (no subject)

Well, depending on the objection you have to an array, maybe a collection
would work better for you. In fact, now that a more experienced programmer
has explained collections to me, I think they're better for this purpose:
You don't have to have any idea ahead of time how many you'll need to store,
and you can label them by a string or a sequential index, whichever works
better for you. (In fact, you can use both at once.) You can create the
Range object and Add it to your collection...though I think you can store
objects in arrays, too, so that isn't really an advantage of collections over
arrays.

But then, you're still storing the ranges one by one and pulling them back
one by one, and in that sense a collection isn't that different from an
array. What do you already know about collections, and if you know about
them, how are you hoping to improve on both them and arrays?

--- "John" wrote:
I want to save multiple possibilities for a range and be able to pop one
back into the range. Is there a way to do this other than saving the
ranges to an array? Can't use copy, paste because there are more than one.

Have Myrange = (Cells(1,1),cells(70,70))

then have 6 different versions of myrange.

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
No Subject No Name Excel Worksheet Functions 0 April 1st 09 07:55 PM
To, CC, BCC, Subject William Benson Excel Discussion (Misc queries) 1 June 8th 05 02:35 PM
No Subject Charts and Charting in Excel 0 June 5th 05 12:00 AM
No Subject Excel Discussion (Misc queries) 0 April 24th 05 12:00 AM
No Subject Excel Discussion (Misc queries) 0 April 23rd 05 12:00 AM


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

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"