View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
teh_chucksta teh_chucksta is offline
external usenet poster
 
Posts: 14
Default modify macro to include more tabs

Hi,

The macro below allows users to group/ungroup rows in a protected sheet. How
do I modify this macro to either incorporate more worksheets or apply it to
the entire workbook?

Thanks,
Charlie


Sub workbook_open()
With Worksheets("Sheet1")
.Protect Password:="password", userinterfaceonly:=True
.EnableOutlining = True
End With
End Sub