Partager via


Range.DialogBox Method

Displays a dialog box defined by a dialog box definition table on a Microsoft Excel 4.0 macro sheet.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Function DialogBox As Object
'Usage
Dim instance As Range
Dim returnValue As Object

returnValue = instance.DialogBox()
Object DialogBox()

Return Value

Type: System.Object

Remarks

This method returns the number of the chosen control, or returns False if the user clicks the Cancel button.

The returned Range object must refer to a dialog box definition table on a Microsoft Excel 4.0 macro sheet.

See Also

Reference

Range Interface

Range Members

Microsoft.Office.Interop.Excel Namespace