+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Forum Contributor
    Join Date
    08-13-2008
    Location
    South Africa
    Posts
    121

    How to protect worksheet and have the "Group and Outline" func usable?

    Hi Guys

    I have a workbook which uses the "group and outline" function. How do i protect the worksheet and have the "group and outline" function made usuable?
    Attached Files Attached Files
    Last edited by Climaxgp; 12-15-2009 at 05:49 AM.

  2. #2
    Forum Contributor
    Join Date
    07-24-2009
    Location
    Northborough, MA USA
    MS-Off Ver
    Excel 2010
    Posts
    197

    Re: How to protect worksheet and have the "Group and Outline" func usable?


  3. #3
    Forum Contributor
    Join Date
    08-13-2008
    Location
    South Africa
    Posts
    121

    Re: How to protect worksheet and have the "Group and Outline" func usable?

    Thanks ncmay!

    I tried putting in the code etc, but it still does not want to work!! Maybe i'm doing something wrong?

  4. #4
    Forum Contributor
    Join Date
    07-24-2009
    Location
    Northborough, MA USA
    MS-Off Ver
    Excel 2010
    Posts
    197

    Re: How to protect worksheet and have the "Group and Outline" func usable?

    Try pasting the following in the "ThisWorkbook" module:

    Code:
    Private Sub Workbook_Open()
    
    Dim sh As Worksheet
    For Each sh In Worksheets
    On Error Resume Next
        With sh
           .Protect Password:="", UserInterfaceOnly:=True
           .EnableSelection = xlUnlockedCells
           .EnableOutlining = True
        End With
       Next
    
    End Sub

  5. #5
    Forum Contributor
    Join Date
    08-13-2008
    Location
    South Africa
    Posts
    121

    Re: How to protect worksheet and have the "Group and Outline" func usable?

    It worked perfectly!!!

    Thank you!!!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0