共用方式為


DocumentLibraryVersion.Open 方法 (Office)

會從 DocumentLibraryVersions 集合中唯讀模式開啟共用文件的指定的版本。

語法

表達。

需要 expression。 代表 DocumentLibraryVersion 物件的變數。

範例

下列範例會以唯讀模式開啟使用中文件先前所儲存的版本。

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

另請參閱

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應