Using the Process Analyst > Process Analyst for Developers > Automation Model > IObjectViewItems._NewEnum [Property][Get]

IObjectViewItems._NewEnum [Property][Get]

This allows For.. Each.. Next integration in VB.

Calling Syntax

This example assumes there is a valid Items collection as retrieved from an ObjectView. (for example, VBA: objectView.Items). This property is not applicable to Cicode.

[VBA]

Sub Example(Items As Object)
Dim item As Object
Dim count Object
`Using Property
For Each item In Items
count = count + 1
Next Item
End Sub