(Excel) 的 Application.ShowStartupDialog 屬性

當 Microsoft Excel 應用程式的 [新增活頁簿] 工作窗格出現時,會傳回 True (預設值為 False) 。 可讀寫的 Boolean

語法

運算式ShowStartupDialog

expression 代表 Application 物件的變數。

範例

在此範例中,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

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應