Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have 4 collections called c2, c3, c4 and c5. I want to cycle through (and perform actions on) all the items contained in each collection. How do I do this? Is there a way to make a collection of my collections? Thanks, Kerry |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Kerry,
You can create a collectionof collections, and then do a double For loop to loop through all the items. For example, Dim Coll As Collection Dim V As Variant Dim All As Collection Set All = New Collection All.Add C1 All.Add C2 All.Add C3 All.Add C4 All.Add C5 For Each Coll In All For Each V In Coll Debug.Print V Next V Next Coll -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Kerry" wrote in message ... Hi, I have 4 collections called c2, c3, c4 and c5. I want to cycle through (and perform actions on) all the items contained in each collection. How do I do this? Is there a way to make a collection of my collections? Thanks, Kerry |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
minimize the file size in a ppt with collections of many pivot tables | Excel Discussion (Misc queries) | |||
Collections Lookups | Excel Programming | |||
Comparing Collections | Excel Programming | |||
Intersecting/Unioning Collections | Excel Programming | |||
Creating Collections 'on the fly' | Excel Programming |