What locking a document means in Word

Locking a document in Word means restricting what changes other people can make to it. You can lock specific sections so only certain people can edit them, lock the entire document so no one can change anything without your password, or lock it in a way that lets people add comments but not alter the text itself.

Word offers several different types of locks depending on what you need. You might want to prevent accidental changes to a finished report, stop collaborators from editing certain sections, or share a document that people can only read. Each lock type works differently and protects different parts of the document.

Key Takeaways

  • You can restrict editing on the entire document or just specific sections, and each method requires a different approach in Word.
  • Protecting a document with a password prevents anyone from making changes unless they enter the correct password.
  • Restricting editing to comments only lets people suggest changes without altering the actual text.
  • Locking specific sections is useful when multiple people work on the same document but need different permissions.
  • Once you lock a document, you must unprotect it using the same password before anyone can edit it again.

How to lock an entire document with a password

Open the document you want to lock. Go to the File menu at the top left, then click Info. Look for the button labeled Protect Document — it usually appears on the right side of the screen. Click it and select Encrypt with Password.

Word will ask you to enter a password. Type a password you will remember, then click OK. Word asks you to type the password again to confirm it. Once you do, save the document. The next time someone opens it, Word will ask for the password before the document appears on screen. Without the correct password, they cannot view or edit the document at all.

Write your password down somewhere safe. If you forget it, you cannot recover the document — Word has no way to bypass the password you set. This type of lock is the strongest option because it prevents access entirely, not just editing.

How to restrict editing but allow comments

Open the document. Go to File, then Info, then Protect Document. This time, select Restrict Editing. A panel will open on the right side of your screen.

In that panel, check the box next to Limit formatting to a selection of styles or Allow only this type of editing in the document. Click the dropdown menu under the second option and choose Comments. This setting lets people open the document and add comments to suggest changes, but they cannot modify the actual text.

Scroll down in the Restrict Editing panel and click Yes, Start Enforcing Protection. Word asks if you want to set a password. You can leave it blank if you trust the people you are sharing with, or enter a password if you want to prevent them from turning off the restriction themselves. Click OK. Now save the document.

How to lock only certain sections of a document

This approach works when multiple people edit the same document but you want to protect specific parts. First, select the section of text you want to lock. Click and drag to highlight it, or triple-click to select an entire paragraph.

Go to File, then Info, then Protect Document, then Restrict Editing. In the Restrict Editing panel on the right, check the box for Limit formatting to a selection of styles. Below that, you will see a list of styles — uncheck every style except the ones used in the section you selected. This prevents anyone from editing text formatted with those styles.

Alternatively, go to File > Info > Protect Document > Restrict Editing, then check Allow only this type of editing in the document. From the dropdown, choose Tracked Changes. This lets people edit the locked section, but all changes appear as tracked changes that you must review and accept. Click Yes, Start Enforcing Protection, set a password if you want, and save.

How to unlock a protected document

If you locked the entire document with a password, you must enter that password when you open it. Word will prompt you before the document displays. Type the password and click OK.

If you restricted editing, go to File > Info > Protect Document > Restrict Editing. In the Restrict Editing panel, click Stop Protection at the bottom. If you set a password, Word asks you to enter it. Type the password and click OK. The document is now fully editable again.

What happens when someone tries to edit a locked document

If the document is encrypted with a password, they cannot open it at all without entering the correct password. Word displays a password prompt before anything else.

If editing is restricted to comments only, they can open the document and read it, but when they try to change text, Word displays a message saying the document is protected and editing is not allowed. They can still add comments using the Review tab at the top.

If only certain sections are locked, they can edit the unlocked parts normally. If they try to edit a locked section, Word shows a message that the section is protected. If you set tracked changes as the restriction, their edits go through but appear as suggested changes rather than direct edits.

Common reasons to lock a document

Lock a document when you have finished writing it and want to prevent accidental changes. Lock it when you share a template and want people to fill in blanks but not change the structure. Lock it when multiple people work on the same file but you need to protect certain sections from being altered.

You might also lock a document to require people to use tracked changes, so you can see exactly what they changed and decide whether to keep those changes. Or lock it to allow only comments, so people can suggest improvements without modifying the original text.

Frequently Asked Questions

Can I lock just the header and footer of a document?

Yes. Select the header or footer by double-clicking it, then go to File > Info > Protect Document > Restrict Editing. Check Limit formatting to a selection of styles and uncheck all styles except the ones used in your header or footer. This protects only those elements.

What if I forget the password to my locked document?

Word cannot recover a forgotten password. You will not be able to open or edit the document. To prevent this, store passwords in a password manager or write them down in a find location. If you lose access, your only option is to recreate the document from a backup.

Can I lock a document in an older version of Word?

Yes, but the steps differ slightly. In Word 2010 and earlier, go to Tools > Protect Document instead of File > Info. The protection options work the same way, but the menu location is different.

Does locking a document prevent it from being copied?

No. Locking prevents editing, but someone can still copy the text and paste it into a new document. If you need to prevent copying entirely, you need a different type of protection called Information Rights Management, which is available in some versions of Word through your organization.

Can multiple people have different passwords for the same document?

No. Word allows only one password per document. If you set a password, everyone who wants to unprotect it must use that same password. If different people need different access levels, you would need to create separate versions of the document with different protections.