Skip to content

excel comment add

zmworm edited this page Apr 30, 2026 · 52 revisions

Excel: Comment - add

Add a comment or note to a cell.

Path: /{SheetName}

Properties

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).

Examples

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=rtl

Based on OfficeCLI v1.0.66

Clone this wiki locally