Expanding/Collapsing Grouped Columns/Rows When a Sheet is Protected

Anonymous
2010-08-18T14:07:51+00:00

I want to protect the locked cells in any given spreadsheet so that the user cannot override formula cells.  I have also grouped columns that contain historical information.  When I protect the sheet, I cannot expand or collapse the grouped columns.  I have tried checking boxes when in the protection dialogue box such as "Format columns", with no success.  I use Excel 2007, but it is saved as a 2003 file because some users are still with that version.

Is it possible to expand or collapse grouped columns when a sheet is protected?

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

41 answers

Sort by: Newest
  1. Anonymous
    2017-07-12T12:56:37+00:00

    You can pretty much put any code that is valid in that procedure.

    You can turn on the macro recorder and then manually sort your data on each sheet to get the code you need.

    The code will be a record of your manual actions, so you will want to clean it up and make it consistent with the code above.  

    --

    Regards,

    Tom Ogilvy

    Was this answer helpful?

    0 comments No comments
  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Anonymous
    2017-07-11T12:26:42+00:00

    mielkew27,

    these lines of code:

        If .FilterMode Then

           .ShowAllData

       End If

    removes any filtering conditions.   So I am not sure where you are applying a filter.    Enabling autofiltering allows you to manually (or with code) apply filtering conditions to an existing autofilter on a protected sheet.  

    You also might look at your autofilter range and make sure the filter includes all your data.  

    Sorry, I haven't been using power query as it doesn't work at my site.   So I can't provide any insight on your second question. 

    --

    Regards,

    Tom Ogilvy

    Was this answer helpful?

    0 comments No comments
  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  5. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more