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.
GeoCash2
Dec 31, 2023Copper Contributor
Your code works great except I wanted the user to be able to add a row. When I attempt to turn that function on within a group it would not allow if after a reopening of the workbook. Err404
HansVogelaar
Jan 01, 2024MVP
Change the line
.Protect Password:="Secret", UserInterfaceOnly:=True
in the Workbook_Open event procedure to
.Protect Password:="Secret", UserInterfaceOnly:=True, AllowInsertingRows:=True