-
Notifications
You must be signed in to change notification settings - Fork 102
excel validation set
zmworm edited this page Mar 31, 2026
·
23 revisions
Modify existing data validation rules.
Path: /{SheetName}/validation[N]
| Property | Accepted Values | Description |
|---|---|---|
sqref |
cell/range reference | Update the target range |
type |
validation type | Update validation type |
formula1 |
value/formula | Update first value |
formula2 |
value/formula | Update second value |
operator |
operator keyword | Update comparison operator |
allowBlank |
bool | Allow blank values |
showError |
bool | Toggle error alert |
errorTitle |
string | Update error title |
error |
string | Update error message |
showInput |
bool | Toggle input prompt |
promptTitle |
string | Update prompt title |
prompt |
string | Update prompt message |
officecli set data.xlsx /Sheet1/validation[1] --prop formula1="Yes,No,N/A"
officecli set data.xlsx /Sheet1/validation[2] --prop formula2=200 --prop error="Enter 1-200"Based on OfficeCLI v1.0.28