Events
Apr 8, 3 PM - May 28, 7 AM
Sharpen your AI skills and enter the sweepstakes to win a free Certification exam
Register now!This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The Comments property of the Document class adds a comment to a range of text in a Microsoft Office Word document.
Applies to: The information in this topic applies to document-level projects and VSTO Add-in projects for Word. For more information, see Features available by Office application and project type.
The following example adds a comment to the first paragraph in the document.
Call the Add method of the Comments property and supply a range and the comment text. To use the following code example, run it from the ThisDocument
class in your project.
Call the Add method of the Comments property and supply a range and the comment text.
The following code example adds a comment to the active document. To use this example, run it from the ThisAddIn
class in your project.
To change the user initials that Word adds to comments, use the UserInitials property.
Events
Apr 8, 3 PM - May 28, 7 AM
Sharpen your AI skills and enter the sweepstakes to win a free Certification exam
Register now!