When everything in Excel is grayed out, the cause is almost always one of three things: the worksheet is protected, the workbook is open in a limited view such as Protected View or Read-Only, or an editing mode or selection state is blocking input. The fastest fix is to check the title bar for "Protected View" or "Read-Only," then look at the Review tab for Protect Sheet or Unprotect Sheet. If neither applies, press Esc to clear any active mode, then check whether the file is locked by another user or opened from an untrusted location.
What You'll Need
- Excel for Windows, Mac, or Excel for the web (steps are written for desktop Excel; the web version has fewer options and some menu labels differ)
- The workbook file, saved to a local folder or a trusted cloud location
- Permission to edit the file, if it is stored on a shared drive or in a shared workspace
- The password, if the sheet or workbook was protected by someone else
Step-by-Step
- Read the title bar first. At the top of the Excel window, look for text after the file name. If you see "Protected View," "Read-Only," or "Read-Only Recommended," that explains the gray interface. Menu labels can differ slightly by Excel version and platform, but this text appears in the same place on Windows and Mac.
- Exit Protected View. If the file opened in Protected View, a yellow message bar usually appears below the ribbon with an Enable Editing button. Click it. If no bar is visible, close the file, right-click it in File Explorer (Windows) or Finder (Mac), open Properties or Get Info, and clear the block or quarantine flag if your system shows one. Only do this for files you trust and received from a known source.
- Switch out of Read-Only. If the title bar says Read-Only, the file may be marked read-only, stored in a read-only folder, or already open by another person. Save a copy with File > Save As to a location you can write to, then edit the copy.
- Check for sheet protection. Go to the Review tab. If you see Unprotect Sheet, click it. If a password prompt appears, you need the password; there is no legitimate way around it. On Excel for the web, the same command appears under the Review tab when a protected sheet is open.
- Check workbook protection. On the Review tab, look for Protect Workbook. If it is active, click it to turn it off. This can lock the structure so sheets cannot be added, moved, or deleted, which makes many commands appear gray.
- Press Esc and click a single cell. An active edit, a dragged selection, or a mode such as Extend Selection can leave the ribbon looking inactive. Press Esc once or twice, then click any cell. The status bar at the bottom left should read Ready.
- Close and reopen the file. Save your work if possible, close Excel completely, and reopen the workbook. This clears temporary lock files and stale states, especially after a crash or a sync conflict.
- Check sharing and co-authoring. If the file is on OneDrive, SharePoint, or a network share, another person may have it open in a way that limits your editing. Look for a message about the file being locked. Ask the other user to close it, or open the file in Excel for the web, which shows who else is editing.
- Repair Office if the problem follows every file. If every workbook opens grayed out, the installation may be damaged. In Windows, go to Settings > Apps > Installed apps, select Microsoft 365 or Office, choose Modify, and run a Quick Repair, then an Online Repair if needed. On Mac, reinstall from the official Microsoft download page.
Common Mistakes
- Assuming the file is broken when it is simply protected. The Review tab tells you in seconds.
- Disabling Protected View permanently for all files. That removes a real security layer; enable editing per file instead.
- Editing a read-only copy and losing changes because it was never saved under a new name.
- Confusing sheet protection with workbook protection. They are separate commands and can be on at the same time.
- Downloading third-party "unlock" tools for a password-protected sheet. These are unnecessary and often unsafe; ask the file owner for the password.
Tips
- Look at the status bar bottom-left. "Ready" means Excel is waiting for input; "Edit" means you are inside a cell; "Protected View" appears when the file is sandboxed.
- Use File > Info to see permissions, protection status, and whether the file is marked as final. A file marked final opens read-only until you click Edit Anyway.
- If only some cells are gray, the sheet likely has locked cells with protection on. Unprotect the sheet, then format cells and clear the Locked checkbox on the Protection tab.
- Keep a personal copy of shared templates so a colleague's protection settings do not block your work.
Troubleshooting
If Enable Editing does not appear, the file may be blocked by Windows. Right-click the file, open Properties, and look for an Unblock checkbox at the bottom of the General tab. Clear it only if you trust the source.
If Unprotect Sheet is grayed out too, the workbook itself is likely protected or the file is read-only. Resolve those first, then return to the Review tab.
If the ribbon is gray but cells are editable, you may be in a mode such as formula editing or have a dialog box open behind the window. Press Esc, then Alt+Tab (Windows) or Command+Tab (Mac) to find any hidden dialog.
If the problem started after an update, restart the computer before repairing Office. If it persists across all files and a repair does not help, sign out of your Microsoft account in Excel and sign back in; this refreshes licensing, which can put Office into a reduced-functionality mode that grays out commands.
Frequently Asked Questions
Why is my whole Excel window gray?
Usually the workbook is in Protected View, read-only, or a sheet or workbook is protected. Check the title bar and the Review tab first.
How do I unprotect a sheet without the password?
You cannot, and you should not try to bypass it. Ask the person who protected the file for the password, or request an unprotected copy.
Why are only some cells gray and uneditable?
Those cells are locked and the sheet is protected. Unprotect the sheet, then clear the Locked setting under Format Cells > Protection.
Does Excel for the web gray out the same way?
It can, but for different reasons: the web version limits some features, and files opened read-only or protected show a banner. Enable editing or open the desktop app for full controls.
Can I turn off Protected View for good?
Yes, in Trust Center settings, but it is not recommended. Protected View exists to stop malicious files from running; enable editing per file instead.
Why does Excel open read-only after I saved to OneDrive?
The file may be open elsewhere, syncing, or set to read-only in OneDrive. Check the sync status and whether another device has it open.