會開啟 Shape 物件的 ShapeSheet 視窗。
語法
expression。 OpenSheetWindow
expression 一個用於表示 Shape 物件的變數。
傳回值
視窗
註解
即使資訊已經顯示在另一個視窗中,OpenSheetWindow 方法仍會為圖形開啟新的 ShapeSheet 視窗。
範例
這個 Microsoft Visual Basic for Applications (VBA) 巨集會顯示如何使用 OpenSheetWindow 方法開啟 Shape 物件的 ShapeSheet 視窗。
Public Sub OpenSheetWindow_Example()
Dim vsoShape As Visio.Shape
Dim vsoSheetWindow As Visio.Window
'Draw a shape.
Set vsoShape = ActivePage.DrawRectangle(1, 1, 2, 3)
'Open the ShapeSheet window of vsoShape.
Set vsoSheetWindow = vsoShape.OpenSheetWindow
End Sub
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。