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

IObjectViewColumns._NewEnum [Property][Get]

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

Calling Syntax

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

[VBA]

Sub Example(Columns As Object)
Dim column As Object
Dim count Object
`Using Property
For Each column In Columns
count = count + 1
Next column
End Sub