Add Dropdown Validation
add_dropdown_validationRestrict an Excel cell range to a dropdown list of allowed values, preventing invalid entries. Works directly on open workbooks to enforce data entry rules.
Instructions
Restrict a range to a dropdown list of allowed values.
Args: workbook: Workbook name or path (None = active workbook). sheet: Worksheet name (None = active sheet). range_address: A1-style address, e.g. "B2:B20". values: List of allowed string values (required), e.g. ["Yes", "No"].
Returns: JSON confirmation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sheet | No | ||
| values | No | ||
| workbook | No | ||
| range_address | No | A1 |