Version property (Document object)
Determines the version of a saved document.
Version added
2.0
Syntax
| |
| |
intRet |
VisDocVersions. The file format version the document is saved in. |
object |
Required. An expression that returns a Document object. |
intExpression |
Required VisDocVersions. The file format version in which to save the document. |
Remarks
Setting the Version property of a document tells Visio which file format version to save the document in the next time the document is saved. The Visio type library declares constants for file format versions in VisDocVersions.
Visio 2002 can save the following versions.
Constant |
Value |
Description |
visVersion50 |
&H50000 |
Visio 5.0 document |
visVersion60 |
&H60000 |
Visio version 2000 or 2002 document |
When Visio opens a document that was saved in an earlier version format, it converts the document's in-memory representation to the current version. However, when closing the document, Visio recognizes that the document was saved in an earlier version format and allows the user to choose the version in which to save the document.