-
Notifications
You must be signed in to change notification settings - Fork 517
excel comment add
zmworm edited this page Apr 30, 2026
·
52 revisions
Add a comment or note to a cell.
Path: /{SheetName}
| Property | Default | Description |
|---|---|---|
ref |
(required) | Cell reference (e.g., A1). Rejects if the cell already has a comment — remove the existing one first. |
text |
(required) | Comment text. Literal \n sequences are converted to line breaks. |
author |
Comment author name | |
direction / dir
|
rtl emits <rtl/> on each run-properties block (Arabic/Hebrew comment layout). |
officecli add data.xlsx /Sheet1 --type comment --prop ref=A1 --prop text="Review this value" --prop author="Alice"
officecli add data.xlsx /Sheet1 --type comment --prop ref=B2 --prop text="Needs update"
officecli add data.xlsx /Sheet1 --type comment --prop ref=C3 --prop text="مراجعة" --prop direction=rtlBased on OfficeCLI v1.0.66