Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try something like this, not tested
Sub workbook_open() Dim wks as worksheet For each wks in Activeworkbook With wks) .Protect Password:="password", userinterfaceonly:=True .EnableOutlining = True End With next wks End Sub HTH Peter "teh_chucksta" wrote: 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I need to modify my macro ... | Excel Discussion (Misc queries) | |||
Can we modify any of the ribbon tabs or create new ribbon tabs? | New Users to Excel | |||
Formula needs to include several worksheet tabs in one workbook | Excel Discussion (Misc queries) | |||
Modify a Macro | Excel Worksheet Functions | |||
Modify A Formula To Include AND | Excel Worksheet Functions |