Iterates through a collection and returns an element. For an example of how to use the Next method in VBA, see Reliably Access Sheet Set Components.
After an element is returned, 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.
The caller must release the interface when the operation is complete.
If the return value is S_OK, then iteration should continue. If the return value is S_FALSE, then iteration should stop.
Syntax
Next() As IAcSmPersist
Comments? |