會傳回代表 Word 中所有內建的對話方塊的 Dialogs 集合。 唯讀。
語法
expression。 Dialogs
expression 代表 Application 物件的變數。
註解
關於回傳集合中單一成員的資訊,請參見 從集合回傳物件。
關於內建對話框的列表,請參見 WdWordDialog 列舉。
範例
This example displays the built-in Find dialog box, with "Hello" in the Find What box.
Dim dlgFind As Dialog
Set dlgFind = Dialogs(wdDialogEditFind)
With dlgFind
.Find = "Hello"
.Show
End With
This example displays the built-in Open dialog box showing all file types.
With Dialogs(wdDialogFileOpen)
.Name = "*.*"
.Show
End With
This example prints the active document, using the settings from the Print dialog box.
Dialogs(wdDialogFilePrint).Execute
另請參閱
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。