共用方式為


Validation.InputTitle 屬性 (Excel)

會傳回或者設定資料驗證輸入對話方塊的標題。 讀取/寫入的 String。 僅限 32 個字符。

語法

表達。輸入標題

代表 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 支援與意見反應