View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
teh_chucksta teh_chucksta is offline
external usenet poster
 
Posts: 14
Default Macro code mod - add tabs/apply to entire workbook

Hi,

The macro below allows users to group/ungroup rows in a protected sheet.
Question: how to modify the VB code so I can incorporate additional tab names
or better yet, have the macro apply to the entire workbook?

Thanks in advance for your help,
Charlie


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