Viewer.OnToolbarCustomized event (Visio Viewer)
Occurs when the user customizes the Microsoft Visio Viewer toolbar by adding or removing buttons.
expression.OnToolbarCustomized
expression An expression that returns a Viewer object.
Nothing
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.
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
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.