Hi, Jeff. I hope you're doing well. I have what I hope is a very quick question for an Excel guru such as yourself! (I hope you don't mind).
I'm trying to allow grouping/ungrouping in a password protected worksheet(s) that I will be distributed to salespeople. I found the below url last evening, tried it using Excel 2000 (at home) and it worked just fine. Now, this morning, I'm trying it at work where we have Excel 2007, and it will not work. Do you have any suggestions?
Also, on another website, I saw a recommendation to add the "Option Explicit" statement in the beginning of the code, but that didn't seem to help either.
Any suggestions you have would be greatly appreciated.
Regards,
Rich
Rich, I would paste the
Closer
Hey, thanks so much, Jeff. This is my first foray into coding. Maybe my mistake was that I was clicking on Developer, then View Code, and pasting there.
Also, if there is more than one sheet in the workbook, would it look as follows?:
==================
Private Sub Workbook_Open()
With Sheet1 Sheet2 Sheet3
.Unprotect Password:="Secret"
.Protect Password:="Secret", UserInterfaceOnly:=True
.EnableOutlining = True
End With
End Sub
=======================
Rich
All Sheets
It Works!
It works! I never would have figured that one out.
You are truly an Excel genius. Thanks very much.
Take care,
Rich