XL2000: How to Programmatically Create a Collection (213763)
The information in this article applies to:
This article was previously published under Q213763 SUMMARY
Programming functionality in Microsoft Excel allows you to create a
collection. A collection is a predefined object that stores groups of related objects, making it easier to work with the object group. For example, you can use a For Each loop statement to loop through the collection. Each time the macro executes the loop, it references a different object in the collection until all objects in the collection are referenced once.
This article includes a sample Visual Basic for Applications macro that
creates and references a collection.
REFERENCESFor more information about the Add method, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type add method in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
For more information about collections, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type collection object in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbdtacode kbhowto kbProgramming KB213763 |
---|
|