Skip to content

excel comment add

zmworm edited this page Apr 28, 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

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"

Based on OfficeCLI v1.0.61

Clone this wiki locally