finfor.blogg.se

How to lock parts of a word document
How to lock parts of a word document







how to lock parts of a word document

  • Click the Restrict Editing tool, in the Protect group.
  • Once your document is divided into sections, you can protect a section by following these steps: You insert a section break by displaying the Page Layout (Layout if you are using Word 2016 or a later version) tab of the ribbon and clicking the Breaks tool.

    how to lock parts of a word document how to lock parts of a word document

    Sections, in Word, are defined by the presence of section breaks. When you protect your document, you can also specify that only specific sections of the document be protected. If you didn't define any controls for the form, then all the information still remains protected, and you end up with a document that cannot be changed.

    how to lock parts of a word document

    The idea behind forms is that you can specify the information to be entered in a form using special controls, and then you protect the form so that you can only enter data by using those controls no other information in the protected portion of the form can be changed. This is done through Word's implementation of its forms feature. ,įalse, allows you to protect parts of a document so that they cannot be changed. To use this code example, run it from the ThisAddIn class in your project. The following code example protects the active document. Protect a document by using a VSTO Add-in To protect a document by using an application-level VSTO Add-inĬall the Protect method of the Document that you want to protect. These code examples assume you have an existing Bookmark control named Bookmark1 on the document in which this code appears. To use these code examples, run them from the ThisDocument class in your project. Me.Protect(, _Įxclude Bookmark1 from the document protection. Protect the entire document using the Protect method. To exclude a bookmark control from document protection Ref noReset, ref password, ref useIRM, ref enforceStyleLock) Protect a document that is part of a document-level customization To protect a document that is part of a document-level customizationĬall the Protect method of the ThisDocument class in your project. For more information, see How to: Protect parts of documents by using content controls. You can also use content controls to protect parts of documents. For more information, see the Document Protector Sample at Office development samples and walkthroughs. The following example does not use password protection however, you might want to consider using a password when adding document protection.









    How to lock parts of a word document