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: Most helpful
  1. 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

  2. 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
  3. 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

  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. Anonymous
    2016-04-15T14:34:53+00:00

    I have tried every permutation imaginable with the code presented and it still doesn't work.  Am I the lone exception here or am I just doing something wrong?

    Was this answer helpful?

    0 comments No comments