
The other parts of the document, however, can be edited freely. When you protect text in a Word document, users view it as read-only. How to Protect Specific Content in a Word Document? Keep reading to discover how to lock certain parts of a Word document. This feature has been present in Office Word 2007, 2010, 2013, and 2016. This is particularly useful when working on a piece with your colleagues. Please let us know if you have any more queries.In Microsoft Word, there is a feature you can use to protect parts of a document you wouldn’t want other users to make changes to. This code example sets the editable range for second paragraph of document. EditableRangeStart and EditableRangeEnd are just markers inside a document that specify where the editable range starts and ends. A complete editable range in a Word document consists of a EditableRangeStart and a matching EditableRangeEnd with the same Id. EditableRangeEnd class represents an end of an editable range in a Word document. For your requirement, you can insert start and end range accordingly.įurthermore, to protect a range in Word document EditableRangeStart class represents a start of an editable range in a Word document. Badly formed editable range will be ignored when the document is saved.

But please note that currently editable ranges are supported only at the inline-level, that is inside Paragraph, but editable range start and editable range end can be in different paragraphs. Apose.Words support to protect selected ranges. Can I lock (or make uneditable) portions of a word for your inquiry. Click the “Yes, Start Enforcing Protection” button, and set a password if you want to.

In other words, your entire document is read-only except for the main part in the middle, which can be edited by everyone.

Under the Exceptions part of the sidebar now displayed in Editing restrictions, click the check-box for ‘Everyone’.Click somewhere in your template that isn’t the header/footer and hold Ctrl-A to select all.Under Editing Restrictions, click “Allow only this type of editing in the document” and set the dropdown to “No changes (Read only)”.With your template open, navigate to the Developer tab.(Open word options, then click the check-box in the Popular section.) Display the Developer Tab on the ribbon.I would like to replicate the functionality described here:Ĭan’t take credit for this but I found this forum post from user “Mike” at
