Excel) (Validation.ErrorTitle 屬性
會傳回或設定資料驗證錯誤對話方塊的標題。 讀取/寫入的 String。
語法
運算式。ErrorTitle
表達 代表 Validation 物件的 變數。
範例
這個範例會在 E5 儲存格中新增資料驗證。
With Range("e5").Validation
.Add xlValidateWholeNumber, _
xlValidAlertInformation, xlBetween, "5", "10"
.InputTitle = "Integers"
.ErrorTitle = "Integers"
.InputMessage = "Enter an integer from five to ten"
.ErrorMessage = "You must enter a number from five to ten"
End With
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。