Viewer.GetErrorMessage method (Visio Viewer)
Returns a string that describes the specified error message code in Microsoft Visio Viewer.
Syntax
expression.GetErrorMessage (ErrorCode)
expression An expression that returns a Viewer object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
ErrorCode | Required | Long | The error message code for which you want to get a description. |
Return value
String
Remarks
If you pass an error code that Visio Viewer does not recognize, the GetErrorMessage method returns either a string saying so or nothing.
If you pass the value that the LastErrorCode property returns, the GetErrorMessage method returns the last error code that Visio Viewer returned.
Example
The following code shows how to use the GetErrorMessage method to get a description of the last error code that Visio Viewer returned.
Debug.Print vsoViewer.GetErrorMessage(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.