Update a shape or form control
xlide_update_shapeModify an existing Excel shape: move, resize, rename, hide, or update its text, alt text, linked cell, or list range without replacing it.
Instructions
Moves, resizes, renames or changes an existing shape's text, alt text or visibility without replacing it. A Forms control can also change its linked cell or list range. Coordinates and sizes are in points; omit any field to leave it unchanged, and pass an empty text or link to clear it. ActiveX, embedded objects and groups cannot be updated. Works on .xlsx, .xlsm and .xlam.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | New top position in points. | |
| left | No | New left position in points. | |
| text | No | New caption or text; empty clears it. | |
| sheet | Yes | Worksheet name, matched without case. | |
| width | No | New width in points. | |
| height | No | New height in points. | |
| hidden | No | Hide or show the shape. | |
| alt_text | No | New accessibility text; empty clears it. | |
| new_name | No | New name; omit to keep the current one. | |
| file_path | Yes | Absolute path to the Excel file. | |
| list_range | No | Forms list source; empty clears it. | |
| shape_name | Yes | Current name from xlide_list_shapes. | |
| linked_cell | No | Forms control link; empty clears it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||