如果显示 Microsoft Excel 应用程序的“新建工作簿”任务窗格,则返回 True(默认)。Boolean 类型,可读写。
expression.ShowStartupDialog
expression 必需。该表达式返回“应用于”列表中的对象之一。
在本示例中,Microsoft Excel 判断是否显示了“新建工作簿”任务窗格,并通知用户。
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