ShowStartupDialog Property

Microsoft Excel Visual Basic

expression.ShowStartupDialog

expression    Required. An expression that returns one of the objects in the Applies To list.

Example

In this example, Microsoft Excel determines if the New Workbook task pane appears and notifies the user.

Sub CheckStartupDialog()

    ' Determine if the New Workbook task pane is enabled.
    If Application.ShowStartupDialog = False Then
        MsgBox "ShowStartupDialog is set to False."
    Else
        MsgBox "ShowStartupDialog is set to True."
    End If

End Sub