Iterates to the next component and retrieves it. For an example of how to use the Next method in VBA, see Reliably Access Sheet Set Components.
After an element is returned using the Next method, you can perform operations on it. The collection should be treated as read-only. Elements should not be removed during iteration because removing elements can result in inconsistencies.
If the return value is S_OK, iteration can continue. If the return value is S_FALSE, iteration must stop. Do not use the macro SUCCEEDED to determine success or failure.
The caller must release the interface when the operation is complete.
Syntax
Next() As IAcSmComponent
Comments? |