XL98: How to Programmatically Create a Collection (184706)
The information in this article applies to:
- Microsoft Excel 98 Macintosh Edition
This article was previously published under Q184706 SUMMARY
New programming functionality in Microsoft Excel 98 Macintosh Edition
allows you to create a collection. A collection is a predefined object that
stores groups of related objects. A collection makes it easier to work with
the object group. For example, you can use a "For Each...Next" looping
structure 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.
REFERENCES
For more information about the Add Method, from the Visual Basic Editor,
click the Office Assistant, type add method click Search, and then click
to view "Add Method(VBA Language Reference)."
For more information about the Collections, from the Visual Basic Editor,
click the Office Assistant, type collections, click Search, and then
click to view "Collection Object."
NOTE: If the Assistant is hidden, click the Office Assistant button on the
Standard toolbar. If the Assistant is not able to answer your query, please
see the following article in the Microsoft Knowledge Base:
176476 OFF: Office Assistant Not Answering Visual Basic Questions
Modification Type: | Minor | Last Reviewed: | 10/10/2006 |
---|
Keywords: | kbdtacode kbhowto kbProgramming KB184706 |
---|
|