Viewer.Unload method (Visio Viewer)
Unloads the drawing file that is open in Microsoft Visio Viewer.
Syntax
expression.Unload
expression An expression that returns a Viewer object.
Return value
Nothing
Example
The following code prints the name of the drawing that is loaded in Visio Viewer, unloads the drawing, and then prints a blank statement that shows that the document has been unloaded.
Debug.Print vsoViewer.SRC
vsoViewer.Unload
Debug.Print vsoViewer.SRC
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.