Validation.InputTitle 属性 (Excel)
返回或设置数据有效性输入对话框的标题。 读/写 String。 限制为 32 个字符。
语法
表达式。InputTitle
表达 一个代表 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 支持和反馈,获取有关如何接收支持和提供反馈的指南。