Hi all
Yesterday I had some help trying to make it so that people could expand and collapse existing groups within a protected worksheet.
Adding this code to workbook:
It worked well for my helper, but it did not work for me.
I'm using an O365 business license and excel is updated to the latest version.
We were using the same file for the test, and I made attempts on different computers - however, same version of excel.
I'm based in Europe, and the person assisting me is based in North America - could there be something regional?
When I try to expand or collapse the groups while the sheet is protected I keep getting faced with this error:
Would anyone have ideas as to what could be the issue?
Thank you!
Yesterday I had some help trying to make it so that people could expand and collapse existing groups within a protected worksheet.
Adding this code to workbook:
VBA Code:
Private Sub workbook_open()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Sheets
ws.Protect Password:="Test", userinterfaceonly:=True
ws.EnableOutlining = True
Next
End Sub
It worked well for my helper, but it did not work for me.
I'm using an O365 business license and excel is updated to the latest version.
We were using the same file for the test, and I made attempts on different computers - however, same version of excel.
I'm based in Europe, and the person assisting me is based in North America - could there be something regional?
When I try to expand or collapse the groups while the sheet is protected I keep getting faced with this error:
Would anyone have ideas as to what could be the issue?
Thank you!