Hello, Regarding Excel 2010

I was able to find the below helpful in letting me expand and collapse grouped rows in a protected worksheet, however when I tried to add the insert/delete rows, it did not provide the functionality needed.

Sub Protect_Groups_Inserting()
With Worksheets("December 2015")
.Protect Password:="password", UserInterFaceOnly:=True, AllowInsertingRows:=True, AllowDeletingRows:=True
.EnableOutlining = True
End With
End Sub

Please help.

Thank you!