How to Password-Protect an Excel or Word Document
Question details
The user wants to know how to add a password to an Excel or Word document to prevent unauthorized opening or to restrict editing capabilities.

- Product
- Microsoft Excel and Word
- Device & OS
- not provided
- Scenario
- Securing sensitive information in documents and spreadsheets to prevent unauthorized access or modifications.
- Observed behavior
- The user needs the specific menu paths and steps to apply password encryption and editing restrictions to their files.
Make sure to record your password in a secure password manager or physical safe, as Microsoft cannot recover a forgotten password for encrypted files.
Encrypt the Document with a Password
Use this method if you want to completely block unauthorized users from opening and viewing the file's contents.
Encrypting a file provides the highest level of document security in Word and Excel. Anyone attempting to open the file will be prompted to enter the password before the contents become visible.
Open your file in Excel or Word, and click on the 'File' tab located in the top-left corner of the ribbon.
Select 'Info' from the left-hand sidebar menu.
Click on 'Protect Document' (in Word) or 'Protect Workbook' (in Excel) to open a drop-down menu.
Click on 'Encrypt with Password' from the available options. A dialog box will appear.
Type a strong password into the field, click 'OK', re-enter the password to confirm it, and click 'OK' again. Save the document to apply the encryption.

Restrict Editing Capabilities
Use this method if you want others to be able to open and read the document, but require a password to make any modifications.
Secure Your Files with WPS Office
WPS Office provides robust, built-in document encryption to keep your sensitive data safe. You can easily set passwords for opening or modifying files, ensuring complete peace of mind while enjoying full compatibility with Microsoft Office.
- 1. Open your file in WPS Office: Launch WPS Office and open the document or spreadsheet you want to protect.
- 2. Access Document Encryption: Click on the 'Menu' button at the top left corner, hover over 'Document Encryption', and select 'Encryption'.
- 3. Set your Passwords: Enter a password in the 'Document password' field to restrict opening, or use the 'Password to modify' field to restrict editing.
- 4. Apply Settings: Click 'OK', confirm your passwords if prompted, and save the file to lock in your security settings.

Frequently Asked Questions
What happens if I lose the password to my encrypted document?
Microsoft does not have a feature to retrieve forgotten passwords. If you lose or forget the password, you will not be able to recover or open the document. Always keep a backup of your passwords in a secure location.
Can I remove a password from a Word or Excel file later?
Yes. Open the document using the current password, go to File > Info > Protect Document/Workbook > Encrypt with Password, delete the password characters in the dialog box so the field is blank, and click OK. Save the file to remove the protection.
Can I lock specific cells in Excel instead of the whole sheet?
Yes. First, select the cells you want to remain editable, right-click and choose 'Format Cells', go to the 'Protection' tab, and uncheck 'Locked'. Then, go to the 'Review' tab and click 'Protect Sheet' to lock the rest of the worksheet.




