Forum Discussion

JulieG1974's avatar
JulieG1974
Copper Contributor
Feb 18, 2019
Solved

Protect 'summary' sheet from editing but enable grouping - is it possible?

I have a document with several editors who should be allowed to input data.     All those individual editor spaces come together in a 'summary' page which i want to protect from being edited.  Howe...
  • Wyn Hopkins's avatar
    Feb 18, 2019

    As far as I'm aware you need to use VBA to do this using Sheet.EnableOutlining = True

     

    Right Click on your summary tab and select View Code

     

     

    Then paste this code in the window

     

     

    Private Sub Worksheet_Activate()
    
    With ActiveSheet
    
    .Protect Password:="XYZ", UserInterfaceOnly:=True
    .EnableOutlining = True
    
    End With
    
    
    End Sub
    

     

    This code could be put in a workbook open event or wherever is suitable.

     

Resources