# Add Comment (Desktop)

> `UiPath.Word.Activities.WordAddComment`

`UiPath.Word.Activities.WordAddComment`

## Description

Adds a comment to a Word document anchored to a text match, bookmark, or revision (tracked change).

## Project compatibility

Windows

## Configuring the activity

* **Comment** - The content of the comment to be added.
* **Search by** - The type of anchor for the comment. Select one of the following options:
  * **Text** - Searches for a text in the document and anchors the comment to the matched text.
  * **Bookmark** - Identifies a predefined bookmark in the Word document and anchors the comment to a named bookmark.
  * **Revision** - Anchors to a tracked change.

## Properties

**Options**

* **Occurrence index** - The occurrence of the anchor text to target. For example, `1` targets the first occurrence, `2` targets the second. If omitted, defaults to the first match.
* **Author** - The author name for the comment. If not provided, it defaults to the current user.

:::note
Using the Cross-platform version of this activity in a document where comments were previously added with the Windows version may not work as expected. This applies only when you intentionally mix Windows and Cross-platform activities on the same document.
:::

:::note
For more details on the plus menu options, check [Designing automations](https://docs.uipath.com/studio/standalone/latest/user-guide/designing-automations).
:::
