You cannot use this command on a protected sheet.

Anonymous
2010-11-03T16:57:04+00:00

I have created a worksheet in which I've group certain rows. When I protect the sheet, the group function is no longer useable, I get the following error message: "You cannot use this command on a protected sheet. To use this command, you must first unprotect the worksheet (Review tab, changes groups, unprotect sheet button) You may be prompted for a password".  

Is there a way that I can lock/protect specific cells yet still use the group function?

Thank you,

Michele

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

7 answers

Sort by: Newest
  1. Anonymous
    2017-06-08T15:01:11+00:00

    Hello - This VBA is not working for me to solve the same issue.

    Any tips?

    Thank you,

    -Matt

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2017-01-13T16:05:01+00:00

    Hi Dave,

    I have the same problem as Maid4boys above, but I have grouped columns instead of rows.

    But I am a new bee to VBA and I can't get it to work.

    I have entered the code, which i found in several threads, but it doesn't work.

    I have already grouped the columns, do I have to use subtotal? if yes, how?

    When I click on Developer and then Macro, do I have to enter any details there?

    Macro security I have it on "disable all macros except digitally signed macros"

    I have protected the sheet and the workbook as week. 

    I would be very grateful if you could help.

    Many thanks,

    Antonella

    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
    2013-07-31T09:09:30+00:00

    What about for multiple worksheets? I tried adding another module but excel won'y allow 2 Auto_Open modules?.  I tried added 2 work sheet name ("Tab1", "Tab2) but got a Compile Error saying "Wrong number of arguments or invalid property assignment".

    Was this answer helpful?

    0 comments No comments