Two issue re auto-filter on protected sheets

jasmith4

Active Member
Joined
May 16, 2008
Messages
337
I have a big spreadsheet with macros that crunch some numbers and put out results in a new workbook: the workbook is protected, and so are all sheets, but with sorting and filtering allowed. The headers have auto-filter buttons.

Issue #1: the auto-filter allows the user to filter, but upon sorting the user gets the "cell is protected" dialog box, and it doesn't sort.

Also, above the headers there are cells which have SUM formulas operating on the columns below them. I'd like them to sum only the displayed cells when a user filters. I wish the CELL function had "height" as well as "width" among its choices, because then I could create a hidden column of formulas =0<CELL("height",$A2), etc., and use SUMIF on that column.

Issue #2; without VBA code, is there a way to determine if a row is hidden or filtered out? Or how would I accomplish the above?
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Somehow the above got garbled a little. Here's the original:

I have a big spreadsheet with macros that crunch some numbers and put out results in a new workbook: the workbook is protected, and so are all sheets, but with sorting and filtering allowed. The headers have auto-filter buttons.

Issue #1: the auto-filter allows the user to filter, but upon sorting the user gets the "cell is protected" dialog box, and it doesn't sort.

Also, above the headers there are cells which have SUM formulas operating on the columns below them. I'd like them to sum only the displayed cells when a user filters. I wish the CELL function had "height" as well as "width" among its choices, because then I could create a hidden column of formulas =CELL("height",$A3), etc., and use a SUMIF formula that checks for non-zeros in the column.<CELL("HEIGHT",$A2), column.


Issue #2; without <ACRONYM title="visual basic for applications">VBA</ACRONYM> code, is there a way to determine if a row is hidden or filtered out? Or how would I accomplish the above?
 
Upvote 0

Forum statistics

Threads
1,223,270
Messages
6,171,102
Members
452,379
Latest member
IainTru

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