ErrorTitle 属性 (Excel)Validation.ErrorTitle property (Excel)

返回或设置数据有效性错误对话框的标题。Returns or sets the title of the data-validation error dialog box. 读/写 StringRead/write String.



_表达式_一个代表**验证** 对象的变量。expression A variable that represents a Validation object.


本示例向单元格 E5 添加数据有效性检验。This example adds data validation to cell 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

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.