Dialog Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a built-in Microsoft Excel dialog box.
public interface class Dialog
[System.Runtime.InteropServices.Guid("0002087A-0000-0000-C000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(2)]
public interface Dialog
Public Interface Dialog
- Attributes
Remarks
The Dialog object is a member of the Dialogs collection. The Dialogs collection contains all the built-in dialog boxes in Microsoft Excel. You cannot create a new built-in dialog box or add one to the collection. The only useful thing you can do with a Dialog object is use it with the Show(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) method to display the corresponding dialog box.
Use Dialogs(index
), where index
is a built-in constant identifying the dialog box, to return a single Dialog object.
Microsoft Excel includes built-in constants for many of the built-in dialog boxes. Each constant is formed from the prefix "xlDialog" followed by the name of the dialog box. For example, the Apply Names dialog box constant is xlDialogApplyNames, and the Find File dialog box constant is xlDialogFindFile. These constants are members of the XlBuiltInDialog enumerated type.
Properties
Application |
Returns an Application object that represents the Microsoft Excel application. |
Creator |
Returns a 32-bit integer that indicates the application in which this object was created. |
Parent |
Returns the parent object for the specified object. |
Methods
Show(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) |
Displays the built-in dialog box and waits for the user to input data. |