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
    2015-09-30T18:56:54+00:00

    One last question... the code that I added currently only affects one single worksheet. How can I add another worksheet to the code, so that it applies to multiple worksheets?

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2015-09-24T21:02:35+00:00

    Thanks for the awesome help, Tom!

    I marked all of your comments as helpful.  : )

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2015-09-24T19:18:04+00:00

    the warning depends on your security settings.   You have choices like

    wide open, no restrictions

    warn on opening

    disable without warning.

    you can protect your code by going into the VBE and under tools => Properties, then Protection Tab.

    Before  you protect it you should probably rename your project something other than VBProject. 

    Also there is little chance of recovering this password so don't forget it.

    (there are commercial products I would guess but it is still pretty robust).

    --

    Regards,

    Tom Ogilvy

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2015-09-24T18:54:04+00:00

    I also found it interesting that the spreadsheet is locked and password protected, but all a user would have to do is push Alt-F11, and then they could see the password in the code. 

    I don't suppose there's a way to keep the code password protected as well is there?

    Was this answer helpful?

    0 comments No comments