Lock the Position of a Slicer in an Excel Worksheet So It Can’t Be Moved
by Avantix Learning Team | Updated June 14, 2021
Applies to: Microsoft® Excel® 2013, 2016, 2019 and 365 (Windows)
Slicers are a great tool in Excel to filter tables or pivot tables. You can lock the position of a slicer in an Excel worksheet using a two-step process. First, select the slicer or slicers and Disable resizing and moving in the Format Slicer task pane (and choose other options based on your preferences). Second, protect the sheet using the Review tab in the Ribbon. There are a few important options you’ll need to select to get this to work.
Recommended article: 10 Excel Data Entry Tricks and Shortcuts Every User Should Know
Do you want to learn more about Excel? Check out our virtual classroom or live classroom Excel courses >
Step 1: Locking the position of one or more slicers using the Format Slicer task pane
To lock the position of one or more slicers in the Format Slicer task pane:
- Right-click the slicer. If you are changing multiple slicers, Ctrl-click each slicer and right-click one of the selected slicers. A drop-down menu appears.
- Select Size and Properties in the menu. A task pane appears.
- In the Format Slicer task pane, click the arrow beside Position and Layout to expand it.
- Check or select Disable resizing and moving.
- In the task pane, click the arrow beside Properties to expand it.
- Select Don’t move or size with cells.
- Uncheck or de-select Locked. If you leave this checked, you won’t be able to use the slicer(s).
Below is the Format Slicer task pane (note that Locked has been de-selected):
Step 2: Protecting the sheet and allowing filtering
To protect the sheet and allow filtering with the slicer(s):
- Click the Review tab in the Ribbon.
- Select Protect Sheet in the Protect group. A dialog box appears.
- If required, enter a password (be sure to keep track of your passwords).
- Select or check Select locked cells (this should be selected by default).
- Select or check Select unlocked cells (this should be selected by default).
- Select or check Use PivotTable and Pivot Chart and Use AutoFilter (you will need to scroll down in the dialog box).
- Click OK.
- If prompted, re-enter the password and click OK.
You must select Use Pivot Table and Pivot Chart and Use AutoFilter in the Protect Sheet dialog box:
Slicers are a great tool in Excel, but it is tricky to lock the position of a slicer.
Did you find this article helpful? If you would like to receive new articles, join our email list.
Our instructor-led courses are delivered in virtual classroom format or at our downtown Toronto location at 1 Yonge Street, Suite 1801 (Toronto Star Building), Toronto, Ontario, Canada (some live classroom courses may also be delivered at an alternate downtown Toronto location). Contact us at email@example.com if you'd like to arrange custom training on a date that's convenient for you.
Copyright 2021 Avantix® Learning
You may also like
You can apply strikethrough to text or values in Excel to cross out or create a line through a cell or part of a cell. There are 3 common ways to apply strikethrough in your Excel worksheets – using a built-in keyboard shortcut, using the Font dialog box, or by adding a command to the Quick Access Toolbar.
In Microsoft Excel, when you enter data or a formula, it appears in the Formula Bar. If you are writing longer formulas, it can be helpful to expand the Formula Bar.
You can quickly fill blank cells in a range of data in Excel with dashes, zeros or other number or text values. Blank cells can be problematic if you want to use a data set as the source for a pivot table.
Microsoft, the Microsoft logo, Microsoft Office and related Microsoft applications and logos are registered trademarks of Microsoft Corporation in Canada, US and other countries. All other trademarks are the property of the registered owners.
Avantix Learning | 1 Yonge Street, Suite 1801 (Toronto Star Building), Toronto, Ontario, Canada M5E 1W7 | firstname.lastname@example.org