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

IToolbars._NewEnum [Property][Get]

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

Calling Syntax

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

[VBA]

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