DocumentLibraryVersion.Open method (Office)

Opens the specified version of the shared document from the DocumentLibraryVersions collection in read-only mode.

Syntax

expression.Open

expression Required. A variable that represents a DocumentLibraryVersion object.

Example

The following example opens the previous saved version of the active document in read-only mode.

 Dim dlvVersions As Office.DocumentLibraryVersions 
 Set dlvVersions = ActiveDocument.DocumentLibraryVersions 
 dlvVersions(dlvVersions.Count - 1).Open 
 Set dlvVersions = Nothing 

See also

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.