I have a locked worksheet with the below VBA to allow people to group/ungroup while not being able to change the data. However I now want to take this a step further and password protect each group so departments can only view their own data within the protected sheet.
The data is grouped vertically and horizontally.
11 groups of 16 rows down the side, A4-A18, A19-A37 etc.
5 groups of of 11 columns at the top, F-P, Q-AA, AB-AL etc.
Private Sub Workbook_Open( )
With Sheet1
.Protect Password:="Secret", UserInterfaceOnly:=True
.EnableOutlining = True
End With
End Sub
The data is grouped vertically and horizontally.
11 groups of 16 rows down the side, A4-A18, A19-A37 etc.
5 groups of of 11 columns at the top, F-P, Q-AA, AB-AL etc.
Private Sub Workbook_Open( )
With Sheet1
.Protect Password:="Secret", UserInterfaceOnly:=True
.EnableOutlining = True
End With
End Sub