Application.Dialogs property (Excel)

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

Syntax

expression.Dialogs

expression A variable that represents an Application object.

Example

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

Application.Dialogs(xlDialogOpen).Show

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

Sub SendIt() 
    Application.Dialogs(xlDialogSendMail).Show arg1:="ask@mrexcel.com", 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.