Skip to content

excel comment

zmworm edited this page Apr 4, 2026 · 29 revisions

Excel: Comment

Cell comments and notes.

Path: /{SheetName}/comment[N]

Operations

  • add - Add a comment to a cell

get

officecli get data.xlsx /Sheet1/comment[1]
officecli get data.xlsx /Sheet1/comment[2]

set

Property Accepted Values Description
text string Update comment text
author string Update author name
officecli set data.xlsx /Sheet1/comment[1] --prop text="Updated comment text"
officecli set data.xlsx /Sheet1/comment[1] --prop author="Bob"

query

officecli query data.xlsx "/Sheet1/comment[*]"
officecli query data.xlsx "/Sheet1/comment[author=Alice]"

remove

officecli remove data.xlsx /Sheet1/comment[1]

Based on OfficeCLI v1.0.34

Clone this wiki locally