Fix Excel Not Prompting for Password on a Protected Workbook
Question details
The user applied password protection to an Excel workbook, but the file opens directly without prompting for the password.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Attempting to secure an Excel file so that unauthorized users are prompted for a password upon opening.
- Observed behavior
- The Excel file bypasses the password prompt and opens directly, indicating a possible mismatch between the intended security level and the applied protection type.
Verify whether you want to prevent users from opening the file entirely, or if you only want to prevent them from modifying the workbook's structure (like adding or deleting sheets).
Use 'Encrypt with Password' Instead of 'Protect Workbook'
The 'Protect Workbook' feature secures the structure of the file but does not prevent opening. To force a password prompt upon opening, you must use the 'Encrypt with Password' feature.
Many users confuse structural protection with file encryption. If you want Excel to ask for a password before displaying any data, file encryption is the correct tool.
Open your Excel workbook. Click on the 'File' tab in the top-left corner, then select 'Info' from the left-hand menu.
Click the 'Protect Workbook' dropdown button and choose 'Encrypt with Password' from the list of options.
Type your desired password in the prompt box and click 'OK'. Re-enter the password to confirm it, then click 'OK' again.
Save the workbook, close Excel entirely, and reopen the file to verify that the password prompt now appears.

Check the 'Save As' General Options
Check if a password was accidentally set as 'Password to modify' instead of 'Password to open', which allows the file to be viewed without a prompt.
Test Protection on a Blank Workbook
If the password prompt still fails to appear, your current workbook might be corrupted. Test the behavior on a fresh file.
Password Protect Your Spreadsheets Easily with WPS Office
WPS Office Spreadsheet provides an intuitive and straightforward way to encrypt your files. You can quickly set up passwords to open or modify documents without navigating through confusing menus.
- 1. Open File in WPS Spreadsheet: Launch WPS Office and open the spreadsheet you want to password protect.
- 2. Access File Encryption: Click on 'Menu' in the top left corner, navigate to 'File', and select 'File Encryption'.
- 3. Set Password to Open: In the Encryption dialog, type your password into the 'Document password' field and confirm it.
- 4. Save the Document: Click 'OK' to apply the settings, then save the document. The password prompt will appear the next time it is opened.

Frequently Asked Questions
What is the difference between 'Protect Workbook' and 'Encrypt with Password'?
'Protect Workbook' restricts structural changes, such as adding, deleting, or hiding worksheets, but allows anyone to open and view the file. 'Encrypt with Password' locks the entire file, requiring a password before the contents can be viewed or edited.
Why does my Excel file open as read-only instead of asking for a password?
This happens when a password is only entered into the 'Password to modify' field under the 'Save As' General Options. To prevent users from opening the file at all, the password must be placed in the 'Password to open' field.
Can I recover a forgotten password for an encrypted Excel file?
No, neither Microsoft Excel nor WPS Office offers a built-in password recovery feature for encrypted workbooks. If you lose or forget the password, the data cannot be easily recovered.
Does saving an encrypted file to OneDrive remove the password?
No, saving to OneDrive or SharePoint does not remove the password. However, AutoSave is disabled for encrypted workbooks, meaning you must manually save your changes.




