會拉近或拉遠網狀圖。
語法
expression.
BoxZoom( _Percent_, _Entire_ )
expression 代表 Application 物件的變數。
參數
| 名稱 | 必要/選用 | 資料類型 | 描述 |
|---|---|---|---|
| Percent | 選用 | Variant | 網狀圖縮小或放大的百分比,介於 25 和 400 之間。 If Entire is True, Percent is ignored. |
| Entire | 選用 | Boolean | True if the Network Diagram resizes to fit the entire project onto the screen, within the same limits described for Percent. 預設值為 False。 |
傳回值
布林值
範例
下面範例嘗試將所有任務顯示在螢幕上。 本範例假設使用中檢視為網狀圖。
Sub Display()
BoxZoom Entire:=True
End Sub
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。