Viewer.LastErrorCode property (Visio Viewer)

Gets the last error code returned by Microsoft Visio Viewer. Read-only.

Syntax

expression.LastErrorCode

expression An expression that returns a Viewer object.

Return value

Long

Remarks

The default value of the LastErrorCode property is 0.

To determine what the error code returned by the LastErrorCode property means, you can pass the code to the GetErrorMessage method.

Example

The following code gets the last error code returned by Visio Viewer.

Debug.Print vsoViewer.LastErrorCode

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.