first you need to protect the sheet.. then you have a number of options. a good one is to have a make a rightclick event to ungroup/group , something a bit like this
Code:
Sub RunThisFirst()
Application.CommandBars("Cell").Reset
With Application.CommandBars("Cell").Controls.Add
.Caption = "Ungroup / Group"
.OnAction = "GroupUngroup"
.Tag = "GroupUngroup"
End With
End Sub
Sub GroupUngroup()
If Rows(ActiveCell.Row - 1).Hidden = True Then
ExecuteExcel4Macro "SHOW.DETAIL(1," & ActiveCell.Row & ",TRUE)"
Else
ExecuteExcel4Macro "SHOW.DETAIL(1," & ActiveCell.Row & ",FALSE)"
End If
End Sub