How to Protect a Workbook Before Sharing
Sending a file out means losing control of it, so the cleanup you do first matters. Protecting a workbook before sharing covers two different goals: stopping people from editing your structure, and stopping them from seeing things you did not mean to send. This guide walks through both, using Excel's built-in tools and a faster pre send checklist.
Decide What You Are Protecting Against
Protection means different things in Excel, and choosing the wrong one wastes time. Sheet and workbook protection stop accidental edits. Encryption with a password stops people opening the file at all. Cleanup removes hidden data you do not want to expose.
Most analysts sharing a model want a mix: lock the inputs and structure, strip leftover notes and metadata, and only encrypt when the contents are genuinely sensitive.
- Protect sheet: prevent edits to specific cells while leaving inputs open
- Protect workbook structure: stop people adding, deleting, or unhiding sheets
- Encrypt with password: require a password to open the file
- Cleanup: remove comments, hidden sheets, and author metadata
Lock Cells With Sheet Protection
By default every cell is marked locked, but locking only takes effect once the sheet is protected. The trick is to unlock the cells you want people to edit first.
- Select the input cells you want to stay editable.
- Press
Ctrl+1, open theProtectiontab, and clear theLockedcheckbox. - Go to
ReviewthenProtect Sheet. - Optionally set a password, choose what users can still do, and click
OK.
Protect Structure and Encrypt the File
To stop people rearranging or unhiding sheets, use Review then Protect Workbook and confirm with OK. This guards the sheet tabs, not the cell contents.
When the data is confidential, encrypt the whole file. Go to File, Info, Protect Workbook, then Encrypt with Password. Anyone without the password cannot open it. Store the password somewhere safe because there is no recovery if you lose it.
Clean Up Hidden Data Before You Send
Protection does not remove what should not be there in the first place. Hidden sheets, stale comments, your name in the file properties, and links to internal workbooks all travel with the file.
Excel's Document Inspector under File, Info, Check for Issues can flag many of these. Run it and review each category rather than removing everything blindly.
Run a Pre Send Pass in One Step
Doing every cleanup by hand before each send is slow and easy to forget. ModelMint's Prepare to Share lets you pick the cleanups you want, such as hide gridlines, reset every sheet to cell A1, remove comments, and hardcode external links, then applies them together.
It complements Excel's protection rather than replacing it. Lock your inputs and encrypt if needed, then run the prepare pass so the file you hand over is tidy and free of internal references.
Prepare to Share
Pick the cleanups you want and apply them before sending a file.
Get ModelMint See how it worksFAQ
Does sheet protection encrypt my file?
No. Sheet and workbook protection only restrict editing. Anyone can still open the file and read it. Use Encrypt with Password if you need to control who can open it.
Can someone remove my sheet protection password?
Sheet protection is a deterrent, not strong security. It can be bypassed by a determined user. For real confidentiality, encrypt the file with an open password instead.
What happens to protection when I save as a different format?
Saving as .xlsx or .xlsm keeps protection settings. Saving as a PDF flattens the workbook and removes editability entirely, which can be the safest way to share a read only copy.