共用方式為


Application.ErrorCheckingOptions 屬性 (Excel)

傳回 ErrorCheckingOptions 物件,代表應用程式的錯誤檢查選項。

語法

表達。錯誤檢查選項

expression 代表 Application 物件的變數。

範例

在本範例中,TextDate 屬性與 ErrorCheckingOptions 屬性結合使用。 當使用者選取日期中包含兩位數年份的儲存格時,會出現「 自動更正選項」 按鈕。

Sub CheckTextDate() 
 
 ' Enable Microsoft Excel to identify dates written as text. 
 Application.ErrorCheckingOptions.TextDate = True 
 
 Range("A1").Formula = "'April 23, 00" 
 
End Sub

支援和意見反應

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