Forum Discussion
Mick_Kitcher
May 06, 2023Copper Contributor
Using Group-Ungroup in a protected Excel sheet
what do i need t do to enable me to group and ungroup rows in my spreadsheet without having to unprotect it? Any help most welcome, thank you.
Mick_Kitcher
May 07, 2023Copper Contributor
Hans, maybe i didn't make it clear what i'm trying to do.
My sheet, which is named DATA (4), i hide and unhide a number of rows but i use the group/ungroup feature where the toggle box, for want of the correct term, sits in the left hand side of the rows. iI is that what i am trying to use without having to unlock the sheet each time, does that help or change anything?
Many thanks
My sheet, which is named DATA (4), i hide and unhide a number of rows but i use the group/ungroup feature where the toggle box, for want of the correct term, sits in the left hand side of the rows. iI is that what i am trying to use without having to unlock the sheet each time, does that help or change anything?
Many thanks
HansVogelaar
May 07, 2023MVP
I have attached a very simple demo workbook. Does it work for you if you allow macros when you open it?
- Mick_KitcherMay 07, 2023Copper ContributorHi Hans, yes it does, i already have macros enabled, it works great, i will recheck my sheet to ensure i have not got some cells locked or something, i don't think i have but whatever it is the problem must be at my end. i will let you know and thank you once again for your help.
- Err404Sep 27, 2023Copper Contributor
Mick_Kitcher once you have added the code provided above you need to exit out of Excel then reopen it for the changed to take effect because the new code is run when the file is opened