Parameters
- type
- A DataValidationType value indicates the type of data validation to add.
- errorStyle
- A DataValidationErrorStyle value indicates the error style to use for error messages.
- operator
- A DataValidationOperator value indicates the data validation operator.
- formula1
- A string value indicates the first data validation value, formula or list.
- formula2
- A string value indicates the second data validation value for DataValidationOperator.Between or DataValidationOperator.NotBetween.
Return Value
The modified data validation.
null
if the data validation cannot be modified.