Gord Dibben wrote on 03/25/2010 13:46 ET :
You must have the Data>Group and Outline area pre-set.
Then you add event code to the worksheet module.
Private Sub Worksheet_Activate()
With Me
.Protect Password:="justme", userinterfaceonly:=True
.EnableOutlining = True
End With
End Sub
This will allow showing and hiding detail on a protected sheet.
Gord Dibben MS Excel MVP
Gord
I have very limited experience in visual basic and I am trying to create a
form
to distribute. Is there a way to run the code automatically when the file is
opened. I do not want the users to go into visual basic and run the code.
(unless there is something that i am missing, but that seems to be the only
way
i can get it to work).
Thanks
Brendan