Application.Dialogs property (Excel)

Returns a Dialogs collection that represents all built-in dialog boxes. Read-only.



expression A variable that represents an Application object.


This example displays the Open dialog box (File menu).


The following code example opens an email message in Microsoft Outlook with the current workbook attached.

Sub SendIt() 
    Application.Dialogs(xlDialogSendMail).Show arg1:="", arg2:="This goes in the subject line" 
End Sub

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.