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