Creates a DataValidation object which can be set on a Range, Area, or Cell. |
public DataValidation CreateDataValidation(ValidationType allowedType, System.String formula) |
Public Function CreateDataValidation(ByVal allowedType As ValidationType, ByVal formula As String) As DataValidation |
The data type allowed in the cell. |
For 'Custom' allowed type: the formula used to validate the cell's data. For 'List' allowed type: the formula referencing a range in the worksheet. |
A DataValidation object. |
|