Wow...I'm new to VBA programming and need to know how to utilize the group and ungroup features for columns and rows in a protected (2007) worksheet???
I have tried to paste the program below in a module, save, close, reopen, lock, and the +- toggles still won't work...what am I missing???

Private Sub workbook_open()
dim wks as worksheet
for each wks in thisworkbook.worksheets
wks.enableoutlining = true
wks.protect password:="whatever", userinterfaceonly:=true
next wks
end sub