• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member
  • Login

Excel Workbook Protection

You are here: Home / Excel / Excel Workbook Protection
Workbook Protection
April 7, 2021 by Mynda Treacy

When you spend days crafting your latest report, the last thing you need are well meaning users messing with your file. In this tutorial I’m going to show you how to use Excel workbook protection which will allow your users to experience the report as you intended. They can:

  • Click Slicer buttons
  • Refresh data connections
  • Select items from drop down lists/data validation
  • Click hyperlinks
  • But they can’t break it!

Watch the Video


Subscribe YouTube

Written Steps for Excel Workbook Protection:

Unlock Cells

By default, all cells and objects in the workbook are locked. However, this doesn’t come into effect until you protect the sheet via the Review tab of the ribbon:

Excel worksheet protection

For most reports and dashboards, you won’t want any cells unlocked, but if you have data validation lists you want your users to interact with, then you’ll want to unlock those cells before protecting the sheet. Likewise for hyperlinks.

To do this, CTRL+1 to open the Format cells dialog box > Protection tab > deselect the ‘Locked’ box:

Protect cells

Hyperlinks

If you have any cells containing hyperlinks, you’ll need to unlock them before protecting the sheet. However, you don’t need to unprotect objects with associated hyperlinks as these will still be clickable when the sheet is protected.

Allow PivotTable and Slicer Interaction

Slicers: Slicers must be unlocked for your users to be able to select items. To do this, select the Slicer (hold SHIFT or CTRL to select multiple Slicers) > CTRL+1 to open the format pane > under Position and Layout check the ‘Disable resizing and moving’ box. This will prevent the pull handles on the Slicer appearing when the Slicer is clicked, and of course as a result, your users can’t move or resize it.

Under Slicer Properties deselect ‘Locked’.

Protect Excel Slicers

Pivot Charts: If your Pivot Charts have field buttons, like the expand and collapse buttons shown below, that you want your users to interact with then you’ll also need to unprotect the charts. Most of the time your Pivot Charts won’t have any field buttons, so you’ll want to leave them protected.

To unprotect a chart, select the chart border then CTRL+1 to open the formatting pane where you can turn off protection.

Excel chart protection

Note: regular charts should stay protected.

Be sure to check the ‘Use PivotTable & PivotChart’ box so they can be updated when any Expand and Collapse buttons or Slicer buttons are selected:

Excel worksheet protection

Form Controls

If your reports use Form Controls, like buttons or check boxes available from the Developer tab then there’s no need to unprotect them as they remain interactive when locked.

Excel Form Controls

Hide Formulas

If you have lots of formulas in your dashboard or report that you don’t want users to be able to inspect, be sure to deselect the ‘Select locked cells’ box:

Prevent users seeing formulas

This will prevent users being able to select any locked cells and as a result they cannot see the underlying formulas in the formula bar.

Hide Workings

The only sheet visible in your file should be your dashboard or report. Put your source data, workings and PivotTables on hidden sheets, then set Workbook Protection to prevent users unhiding them.

IMPORTANT: do not also protect your hidden workings sheets as this will prevent refreshing data connections and PivotTables that support your dashboard or report.

Excel Workbook Protection

Once you have protection set at the cell, object and worksheet level you can set up workbook protection to prevent users unhiding the worksheets that you’ve hidden.

Excel workbook protection

Excel Workbook Protection Caveat

Worksheet and workbook level protection is not intended as a security feature. It simply prevents users from modifying your reports. Don’t rely on it to keep sensitive information private because the password protection can be removed with a range of free tools and techniques available through a simple Google search.

If protecting sensitive data is essential, please consider using Power BI, which has built in security features that allow you to restrict data access to only those with authorisation.

Workbook Protection
Mynda Treacy

Microsoft MVP logo

AUTHOR Mynda Treacy Co-Founder / Owner at My Online Training Hub

CIMA qualified Accountant with over 25 years experience in roles such as Global IT Financial Controller for investment banking firms Barclays Capital and NatWest Markets.

Mynda has been awarded Microsoft MVP status every year since 2014 for her expertise and contributions to educating people about Microsoft Excel.

Mynda teaches several courses here at MOTH including Excel Expert, Excel Dashboards, Power BI, Power Query and Power Pivot.

More Excel Posts

8 Excel in-built AI Tools

Built-in Excel AI Tools

Clean, analyze and visualize data with these Official Excel AI tools by Microsoft. Including formula writing, PivotTables, Charts and more.
excel date and time

Excel Date and Time

Everything you need to know about Excel date and time. Includes comprehensive workbook with every date and time function, plus PDF version.
10 mistakes to avoid when using excel formatting

10 Mistakes to Avoid With Excel Formatting

These are the Excel formatting habits that drive me crazy and what you should do instead to ensure you use formatting effectively.
linear regression

Excel Linear Regression

Excel linear regression is easy with the built-in tools. Use charts to plot linear regression or use the Data Analysis Toolpak.
speed up slow excel files

How to Improve Excel Performance

How to improve Excel performance and the various causes of slow Excel files so you can speed up Excel and avoid problems in future.
Securely Share Excel Files

Securely Share Excel Files

Securely share Excel files stored locally, on OneDrive or SharePoint. Prevent editing or downloading, specify who can open and edit the file.
excel check boxes

Interactive Excel Check Boxes

Excel check boxes are interactive elements you can link to formulas, charts, conditional formatting and more.
tips for working in multiple excel files

Hacks for Working in Multiple Excel Files

Awesome tips for navigating, arranging and working in multiple Excel files. Guaranteed to streamline your workflow and increase productivity.
chatgpt for excel

ChatGPT for Excel

Using ChatGPT for Excel can be hit and miss. Learn the best uses for ChatGPT to make your Excel life easier and what to avoid using it for.
excel templates

Where to Find Free Excel Templates

Where to find free Excel templates and how to create your own Excel templates. Using templates saves time and effort.


Category: Excel
Previous Post:static data tablesStatic Tables in Power Query, Power Pivot and Power BI
Next Post:Shape Maps in Power BIshape maps in power bi

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Current ye@r *

Leave this field empty

Sidebar

More results...

Popular Content

  • 10 Common Excel Mistakes to Avoid
  • Top Excel Functions for Data Analysts
  • Secrets to Building Excel Dashboards in Less Than 15 Minutes
  • Pro Excel Formula Writing Tips
  • Hidden Excel Double-Click Shortcuts
  • Top 10 Intermediate Excel Functions
  • 5 Pro Excel Dashboard Design Tips
  • 5 Excel SUM Function Tricks
  • 239 Excel Keyboard Shortcuts

100 Excel Tips and Tricks eBook

Download Free Tips & Tricks

239 Excel Keyboard Shortcuts

Download Free PDF

mynda treacy microsoft mvpHi, I'm Mynda Treacy and I run MOTH with my husband, Phil. Through our blog, webinars, YouTube channel and courses we hope we can help you learn Excel, Power Pivot and DAX, Power Query, Power BI, and Excel Dashboards.

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel Office Scripts
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook

Sign up to our newsletter and join over 400,000
others who learn Excel and Power BI with us.

 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate
  • Sponsor Our Newsletter

Support

  • Contact
  • Forum
  • Helpdesk – For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.

Download A Free Copy of 100 Excel Tips & Tricks

excel tips and tricks ebook

We respect your privacy. We won’t spam you.

x