Range: 有效性属性 (Excel)Range.Validation property (Excel)

返回**验证** 对象, 该对象表示指定范围内的数据验证。Returns the Validation object that represents data validation for the specified range. 此为只读属性。Read-only.



expression 一个表示 Range 对象的变量。expression A variable that represents a Range object.


本示例使单元格 E5 的数据有效性检验为允许有空值。This example causes data validation for cell E5 to allow blank values.

Range("e5").Validation.IgnoreBlank = True

支持和反馈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.