Word) (Application.Dialogs 屬性

會傳回代表 Word 中所有內建的對話方塊的 Dialogs 集合。 唯讀。

語法

expressionDialogs

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

另請參閱

Application 物件

支援和意見反應

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