I'm tring to allow users to group ungroup, the code below won't let them use this function.
Any ideas? Thank you.
Any ideas? Thank you.
Code:
Sub protectall()
Dim ws As Worksheet
For Each ws In Worksheets
ws.protect AllowFiltering:=True, AllowUsingPivotTables:=True
ws.EnableOutlining = True
Next ws
End Sub