- The easiest way to delete a comment is by right-clicking on the balloon and clicking Delete Comment. Additionally, you can do the same thing inside of the Reviewing Pane. The Reviewing Pane.
- Enroll in my Microsoft Word Master Course 🎓 and become a PRO: to remove comments in Word?
- Remove Comments From Word
- Remove Comments From Word 2016
- Removing Comments Section From Word
- Removing Comments From Word 2013
If you had a printed copy, you might use a red pen to cross out sentences, mark misspellings, and add comments in the margins. Word allows you to do all of these things electronically using the Track Changes and Comments features. Optional: Download our practice document. Watch the video below to learn more about Track Changes and Comments.
Have you came across a document that opens up a dizzyingly view of red markings and balloons all over the place such as this one?
Well, these red markings simply show the changes that you (or the previous authors) have made to the document and it was saved with the Track Changesfeature turned on. If you would like to view the document as final without getting woozy every time you reopen it, you need to accept/reject the changes made, turn off the Track Changesfeature and save the file. Here’s how:
1. Open the document and review all the changes and comments. To accept the changes, follow Step 2 below. To reject the changes, follow Step 3 below. To delete the comments, follow Step 4 below.
2. Click the Accept button under the Changes group from the Review tab.
- Accept and Move to Next: Accept the current change and move on to the next change
- Accept Change: Accept the current change only without moving on to the next change
- Accept All Changes in Document: Accept all of the changes in the document at once
3. Click the Rejectbutton under the Changes group from the Review tab.
- Reject and Move to Next: Reject the current change and move on to the next change
- Reject Change: Reject the current change only without moving on to the next change
- Reject All Changes in Document: Reject all of the changes in the document at once
4. Click the Delete button under the Comments group from the Reviewtab.
Note that at first, the Delete button looks like it is disabled. Just click the mini arrow at the bottom of the Delete button.
- Delete: Delete the current comment (you have to select the comment balloon first, otherwise this option is disabled)
- Delete All Comments in Document: Delete all comments in the document at once
5. After you have performed Step 2, 3 and/or 4, turn off the Track Changesfeature by clicking on the Track Changesbutton once. You will see that the button is no longer highlighted or “pressed”.
6. Save the document as a new version. That’s it!
Note: Turning off the Track Changesfeature without accepting/rejecting the changes will temporarily remove the markings from the current view but you will see these markings again when you reopen the document.
Comments are used in word documents, DOCX or DOC, for suggesting improvements and modifications. Let us explore how to insert comments as well as deleting or removing comments programmatically using Java. You can add author name, initials, comment text, date, and time based on your requirements. We will be performing all of these tasks using Aspose.Words for Java API.
Here we will be learning following use cases related to comments in word documents:
Insert or Delete Comments in Word files (DOCX/DOC) API – Installation
You can download the latest version of Aspose.Words for Java API from Downloads section or from Maven repository, as per the configurations mentioned below:
Repository
Dependency
So the API has been configured now and we can proceed to explore different use cases of working with comments in Word documents.
Insert Comment in Existing Word Document using Java
You can insert or add comments in existing Microsoft Word files, DOCX or DOC, with Aspose.Words for Java API. This can be helpful when reviewing documents, like a supervisor can suggest several changes or improvements on a feasibility report. Moreover, anyone with edit permissions of a word document can work with comments. You need to follow the steps below to insert comments in word file (DOCX/DOC):
- Load existing DOCX file with Document class
- Create a comment
- Save DOCX file
The following code snippet shows how to insert a comment in Word document using Java:
Below screenshot shows a sample comment added in existing Word documents: Happy hacking mac.
Insert Comment in new Word Document using Java
Thing thing arena 3potato games. Comments are also helpful when creating a new word document. For instance, some text may need elaboration which can be explained with the help of comment. Likewise, there could be hundreds of use cases where comments can assist while creating a new DOCX file. You can easily add or insert comments by following the steps below:
- Initialize DocumentBuilder object
- Add sample text
- Create a custom comment
- Save DOCX file
The code snippet below shows how to insert comments while creating a new word document from scratch, using Java:
The screenshot below shows the output where the comment is added on new word document:
Delete Specific Comments from Word Document using Java
Comments are often deleted when suggested improvements or modifications are incorporated into the word document. When you need to delete specific comments then you can follow the steps below:
- Load source word document
- Specify author name
- Remove comments from the specified author
Remove Comments From Word
The code snippet below shows how to delete specific comments from word file using Java: Angry birdseoin gamez.
Delete All Comments from Word Documents using Java
All comments of Word document can be deleted at once. You can follow the steps below for removing all comments:
- Open word docx file
- Collect all comments in the file
- Delete all comments
Remove Comments From Word 2016
Following code snippet elaborates how to delete all comments from Word documents using Java:
Removing Comments Section From Word
Conclusion
To sum up, we have learned how to add, insert, delete, or remove comments from word documents programmatically with Java. If you have any doubts or confusion then please contact us at Free Support Forum.