Viewer.OnToolbarCustomized event (Visio Viewer)

Occurs when the user customizes the Microsoft Visio Viewer toolbar by adding or removing buttons.

Syntax

expression.OnToolbarCustomized

expression An expression that returns a Viewer object.

Return value

Nothing

Remarks

You can customize the toolbar in Visio Viewer by adding or removing buttons. To do so in the user interface, right-click in the toolbar area, and then choose Customize.

You can customize the toolbar programmatically by using the ToolbarButtons property. For the toolbar to be customizable, the ToolbarCustomizable property must be set to its default value, True.

Example

The following code shows how to use the OnToolbarCustomized event to display a message in the Immediate window when the user customizes the toolbar in Visio Viewer.

Private Sub vsoViewer_OnToolbarCustomized()

   Debug.Print "The toolbar has been customized!"

End Sub

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.