Grouped columns on protected sheet

%3CLINGO-SUB%20id%3D%22lingo-sub-2120035%22%20slang%3D%22en-US%22%3EGrouped%20columns%20on%20protected%20sheet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2120035%22%20slang%3D%22en-US%22%3EHi%20All.%20Experiencing%20a%20strange%20issue%20with%20one%20of%20my%20workbooks%20and%20I%E2%80%99m%20hoping%20someone%20may%20be%20able%20to%20shed%20some%20light.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20have%20a%20sheet%20which%20has%20grouped%20columns%20and%20the%20sheet%20is%20protected.%20Under%20sheet%20protection%2C%20the%20option%20for%20%E2%80%9Cformat%20columns%E2%80%9D%20is%20checked.%3CBR%20%2F%3E%3CBR%20%2F%3EIn%20testing%2C%20most%20users%20are%20able%20to%20press%20the%20(%2B)%20and%20(-)%20buttons%20to%20expand%20and%20collapse%20the%20grouped%20columns%20with%20no%20issues.%3CBR%20%2F%3E%3CBR%20%2F%3EHowever%20a%20couple%20of%20testers%20(using%20exactly%20the%20same%20machines%2C%20on%20the%20same%20network%20with%20the%20same%20version%20of%20excel)%20cannot%20expand%20or%20collapse%20the%20grouped%20columns%20and%20instead%20receive%20a%20pop%20up%20message%20saying%20%E2%80%9Cthe%20command%20cannot%20be%20used%20on%20a%20protected%20sheet.%E2%80%9D%3CBR%20%2F%3E%3CBR%20%2F%3EI%20have%20been%20unable%20to%20identify%20why%20this%20is%20working%20for%20some%20users%20but%20not%20all.%20I%20would%20prefer%20a%20non-VBA%20method%20of%20allowing%20all%20users%20to%20expand%2Fcollapse%20grouped%20columns%20but%20need%20to%20know%20that%20it%20will%20work%20for%20all%20users.%3CBR%20%2F%3E%3CBR%20%2F%3EAny%20ideas%20anyone%3F!%3CBR%20%2F%3E%3CBR%20%2F%3EThank%20you%2C%3CBR%20%2F%3E%3CBR%20%2F%3ESarah%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2120035%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor
Hi All. Experiencing a strange issue with one of my workbooks and I’m hoping someone may be able to shed some light.

I have a sheet which has grouped columns and the sheet is protected. Under sheet protection, the option for “format columns” is checked.

In testing, most users are able to press the (+) and (-) buttons to expand and collapse the grouped columns with no issues.

However a couple of testers (using exactly the same machines, on the same network with the same version of excel) cannot expand or collapse the grouped columns and instead receive a pop up message saying “the command cannot be used on a protected sheet.”

I have been unable to identify why this is working for some users but not all. I would prefer a non-VBA method of allowing all users to expand/collapse grouped columns but need to know that it will work for all users.

Any ideas anyone?!

Thank you,

Sarah
3 Replies
Hi sarahstewart, did you manage to solve this issue? I have the same problems, got a sheet with grouping for which I would like to grey out AZ and number sorting, but leave filtering possible. Once I set these last two options with protect sheet, grouping is also disable and I cannot use the + or - signs.

Thank you for any input.
Hello,

Your problem sounds a little different than mine- my issue was that the protect options were working fine for some people using the spreadsheet, but not for others.

In the end I had to use a macro that allows protected sheets to be grouped and in grouped. This way, all users were able to use the grouping function with no issues. It was just annoying as it shouldn’t have been required- the protect options should have worked for all users. Never got to the bottom of why it didn’t.

Here’s a link to the VBA code for the whole workbook which I used:

https://www.thespreadsheetguru.com/the-code-vault/groups-expand-collapse-sheet-password-protection

Good luck!

@sarahstewart 

With your permission, please read the link below.

In order to get a quick and correct proposal for a solution, it is always advantageous to know which version of Excel it is, which operating system it is and where is this Excel file located?

... OneDrive, Sharepoint, hard drive, etc.

So you and everyone who wants to help will be helped.

Welcome to your Excel discussion space!

 

Thank you for your patience and understanding.

 

Nikolino

I know I don't know anything (Socrates)