Reputation: 9
I'm working on an add-in that allows replying to comments in a word document. I need to find which comment is selected and then add text to it through the code, but I can't seem to find methods for finding the selected comment or adding text to it. Thanks to anyone who might know how to help!
Upvotes: 0
Views: 416
Reputation: 37566
Take a look at the Selection.Comments property, Its seems to return a Comments collection that represents all the comments in the specified selection. Selecting one comment would return a collection of one element i guess.
Once you have the Comment you can use the Range.Text property to modify the Text.
Upvotes: 1