User Agents

Web browsers and everyday web tech, explained

How to Lock a Single Tab in Excel

· 5 min read · Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Locking a single tab in Excel protects the contents of a specific worksheet from unintended changes, such as accidental edits, deletions, or formatting adjustments. This is especially useful in shared workbooks where multiple users access different sheets, and you want to prevent modifications to critical data or formulas on one tab while allowing others to remain editable. Excel doesn’t lock tabs by default—protection must be manually enabled using worksheet protection features. The process involves unlocking all cells first (since cells are locked by default), then selectively protecting only the worksheet you want to secure.

What You'll Need

  • Microsoft Excel (desktop or web version)
  • A workbook with at least one worksheet to protect
  • Optional: A password (recommended if sharing the file)

Step-by-Step

  1. Open your Excel workbook and click on the tab (worksheet) you want to lock. Make sure you’re actively viewing that sheet.
  2. Select all cells by clicking the triangle in the top-left corner of the worksheet (where the row and column headers meet), or press Ctrl+A twice if not all cells are selected.
  3. With all cells selected, right-click and choose Format Cells, or press Ctrl+1 to open the Format Cells dialog box.
  4. In the Protection tab, uncheck the box labeled Locked. Click OK. This step ensures that all cells are unlocked by default, which is necessary because Excel locks cells automatically.
  5. Now, select only the specific cells you want to protect (e.g., cells containing formulas, critical data, or headers). You can click and drag, or hold Ctrl to select multiple non-adjacent ranges.
  6. Right-click the selected cells and choose Format Cells again, or press Ctrl+1.
  7. In the Protection tab, check the Locked box. Click OK. These cells will now be marked for protection when worksheet protection is enabled.
  8. Go to the Review tab on the Excel ribbon.
  9. In the Changes group, click Protect Sheet.
  10. In the Protect Sheet dialog box, you can set a password (optional but recommended for shared files). Re-enter the password if prompted.
  11. Under Allow all users of this worksheet to, check only the actions you want users to perform, such as selecting unlocked cells, formatting columns, or inserting rows. By default, everything is disabled when protection is on.
  12. Click OK. The worksheet is now locked according to your settings.
  13. To verify, try editing a locked cell. You should receive a warning that the cell is protected and cannot be changed.
  14. To unprotect the sheet later, go to the Review tab and click Unprotect Sheet. Enter the password if one was set.

Common Mistakes

  • Forgetting to unlock all cells first: Since cells are locked by default, skipping Step 4 means the entire sheet will be locked even if you only wanted to protect certain cells.
  • Not setting permissions correctly: Users may need to select or format cells even on a protected sheet. Ensure you allow necessary actions in the Protect Sheet dialog.
  • Using a weak or forgotten password: If you set a password and forget it, you cannot unprotect the sheet. Excel does not have a password recovery feature.
  • Protecting the wrong sheet: Always double-check which tab is active before applying protection.
  • Assuming protection prevents all changes: Protection only stops direct edits. Users can still copy data, view formulas in the formula bar, or delete the entire sheet if they have permissions at the workbook level.

Tips

  • Use descriptive tab names: Rename protected tabs (e.g., “Budget – Locked”) so users know they shouldn’t edit them.
  • Test protection before sharing: Try editing a locked cell and an unlocked one to confirm settings work as intended.
  • Protect multiple sheets individually: Repeat the process for other tabs if needed. Each sheet must be protected separately.
  • Combine with workbook protection: To prevent users from adding, deleting, or renaming sheets, use Protect Workbook under the Review tab.
  • Document your password: Store passwords securely if used in team environments, but avoid saving them in the same file or folder.

Troubleshooting

If the tab doesn’t lock as expected, check the following:

  • Cell locking not applied: Ensure you re-locked specific cells after unlocking all cells. Protection only affects cells marked as “Locked”.
  • Password prompt not appearing: If no password was set, the sheet can be unprotected by anyone. Always set a password for secure environments.
  • Users can still edit locked cells: This usually means the cells were not marked as Locked before protecting the sheet. Reopen Format Cells and verify the Locked box is checked for those cells.
  • “Protect Sheet” button is grayed out: This may happen if the workbook is shared. Go to Review > Share Workbook and turn off sharing before protecting.
  • Locked cells appear editable: Check if the worksheet is still protected. Go to the Review tab and confirm “Unprotect Sheet” is available—this means protection is active.

Frequently Asked Questions

Can I lock a tab without a password?

Yes. You can protect a sheet without setting a password, but anyone can unprotect it. Use a password for stronger security.

Does locking a tab hide formulas?

No. Locking prevents editing, but formulas remain visible in the formula bar unless you also check “Hidden” in the Format Cells protection settings.

Can I allow some users to edit while others can’t?

Excel doesn’t support user-level permissions in standard files. For granular access, use Excel Online with Microsoft 365 and SharePoint permissions.

Why are all my cells locked by default?

Excel sets all cells as “Locked” by default, but protection only takes effect when you enable worksheet protection. Unlocking all cells first gives you control over what gets locked.

Can I lock only certain columns or rows?

Yes. After unlocking all cells, select specific columns or rows, then lock only those. Protect the sheet to enforce the restriction.

Will locking a tab prevent copying data?

No. Protection stops editing, but users can still copy and paste data from locked cells unless you disable “Select locked cells” in the Protect Sheet options.