Nederbrakel
New Member
- Joined
- Jan 23, 2019
- Messages
- 11
I have a protected spreadsheet (without password) that has subtotals and the associated group levels. These cannot be expanded or collapsed when the sheet is protected.
I have found threads that deal with this and advise the following solution:
In the code for the sheet, put the following:
[FONT="]Private Sub Workbook_Open()[/FONT]
[FONT="] With Worksheets("IRS_Fixed") 'use correct sheet name[/FONT]
[FONT="] .EnableOutlining = True[/FONT]
[FONT="] .Protect UserInterfaceOnly:=True[/FONT]
[FONT="] End With[/FONT]
[FONT="]End Sub
I have tried this but it does nothing. I'm using Excel 2013.
Any advice?[/FONT]
I have found threads that deal with this and advise the following solution:
In the code for the sheet, put the following:
[FONT="]Private Sub Workbook_Open()[/FONT]
[FONT="] With Worksheets("IRS_Fixed") 'use correct sheet name[/FONT]
[FONT="] .EnableOutlining = True[/FONT]
[FONT="] .Protect UserInterfaceOnly:=True[/FONT]
[FONT="] End With[/FONT]
[FONT="]End Sub
I have tried this but it does nothing. I'm using Excel 2013.
Any advice?[/FONT]