logo
search
Permission & Access Issues

How to Password-Protect an Excel or Word Document

Camila MilosovichCamila Milosovich Oct 1, 2026 870 views

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.

How to Password-Protect an Excel or Word Document
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.
Before you start

Make sure to record your password in a secure password manager or physical safe, as Microsoft cannot recover a forgotten password for encrypted files.

Solution 1Recommended

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.

1
Access the File Menu

Open your file in Excel or Word, and click on the 'File' tab located in the top-left corner of the ribbon.

2
Navigate to the Info Section

Select 'Info' from the left-hand sidebar menu.

3
Select the Protection Option

Click on 'Protect Document' (in Word) or 'Protect Workbook' (in Excel) to open a drop-down menu.

4
Choose Encrypt with Password

Click on 'Encrypt with Password' from the available options. A dialog box will appear.

5
Set and Confirm the Password

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.

Encrypt the Document with a Password
Password Sensitivity: Passwords are case-sensitive. Ensure that your Caps Lock key is off when creating and entering your password.
Protect Documents Easily

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. 1. Open your file in WPS Office: Launch WPS Office and open the document or spreadsheet you want to protect.
  2. 2. Access Document Encryption: Click on the 'Menu' button at the top left corner, hover over 'Document Encryption', and select 'Encryption'.
  3. 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. 4. Apply Settings: Click 'OK', confirm your passwords if prompted, and save the file to lock in your security settings.
Built-in document encryption to secure sensitive informationSeamlessly save in Microsoft Word and Excel compatible formatsOption to set separate passwords for reading and editingLightweight, user-friendly interface that is free to use
microsoft office alternative - wps office

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.