protecting sheet prevents me from selecting filter

dbwiz

Active Member
Joined
Nov 20, 2007
Messages
275
I unlocked the top row, which is filtered, then protected the worksheet, as there are a couple of columns with formulas that I do not want touched. However we should be able to filter the sheet. I cannot figure out how to protect the sheet and still be able to filter the data. How can I do this?
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Depends on what version of Excel you're using:
With Excel 2002 or later, when you protect the sheet, you have the option to allow users to use autofilter (one of the checkboxes).

Try Andrew's suggestion here:
http://216.92.17.166/board2/viewtopic.php?t=53916
ActiveSheet.EnableAutoFilter = True
ActiveSheet.Protect contents:=True, userInterfaceOnly:=True
The UserInterfaceOnly property is not saved with the workbook, so it must be reset when it is opened.

In either case, you must setup the AutoFilter prior to protecting the sheet, plus, no sorting is allowed at all, just autofiltering.
 
Upvote 0

Forum statistics

Threads
1,207,011
Messages
6,076,145
Members
446,187
Latest member
LMill

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top