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
    2015-10-08T23:17:03+00:00

    Hi Tom,

    Thanks for the response.  It was a sheet naming error as you suspected (an extra space at the end that I didn't notice).   Working perfectly now.  Thanks again.

    Ajay

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2015-10-08T16:17:29+00:00

    Ajay79,

    Subscript out of range - runtime error 9 means you probably misspelled the name of the sheet.  There isn't a limitation of 10 elements (sheetnames) in an array.    If your sheet names are very long, you might run into some editing limitation, but I doubt it. 

    Back to the misspelling - perhaps you put the name is as you perceive it, but it might have a space character on the beginning or end which you are not aware of or if the name  has a space in it you might have two spaces where you only perceive 1.  I would rename the sheet as you want it be or select the name of the sheet from the sheet tab and do a ctrl+C to copy it then paste it inside double quotes into your code.  (have the "" already in your code then paste between them

    for example:

    v = Array("Historical Results", "OtherSheetName","")

    then I paste the name

    v = Array("Historical Results", "OtherSheetName","NewSheetName ")

    as you can see, there is a space on the end of NewSheetName.  If I had entered the name without the space, I would get a subscript out of range error (error 9) when I ran the code.

    --

    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
    2015-10-01T21:39:26+00:00

    Hi Tom... I inserted the code, as well as the individual names of my worksheets, and am getting an error. 

    I've attached an image for you to see (notice at the very bottom of the image, the spreadsheet's tabs are visible):

    Was this answer helpful?

    0 comments No comments