Protect a document with a password
To protect an Excel document with a password, you can require a password to open or modify the file. This adds a layer of security beyond just protecting a worksheet.
Hereβs how to do it:
π Protect an Excel File with a Password (to Open or Modify)
π Step-by-Step:
- Open your Excel workbook.
- Go to File β Info.
- Click Protect Workbook.
- Choose:
- β Encrypt with Password β to require a password to open the file.
- In the prompt, type your desired password and click OK.
- Re-enter the password to confirm, then click OK again.
- Save the file to apply the password protection.
π Optional: Password to Modify (but Allow Read Access)
If you want people to view but not edit unless they have a password:
- Go to File β Save As β Choose a folder.
- In the Save As dialog, click Tools (next to the Save button), then choose General Options.
- Set:
- Password to open (if you want to restrict access completely).
- Password to modify (if you want to allow view-only access by default).
- Click OK, confirm any passwords entered, and then save the file.
β οΈ Important Notes:
- Passwords are case-sensitive.
- If you lose the password, it cannot be recovered β store it securely.
- File-level protection encrypts the entire file, unlike worksheet protection (which only limits edits).