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

IToolbarButtons._NewEnum [Property][Get]

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

Calling Syntax

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

[VBA]

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