+ Reply to Thread
Results 1 to 3 of 3

Enable grouping in protected worksheet

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-10-2005
    Location
    Central Jersey
    Posts
    117

    Enable grouping in protected worksheet

    I'm mainly working with Excel 2000, but I also noticed this is the same for 2003. When you protect a sheet that has grouped columns/rows, there is no option to enable "Group" and "Ungroup". Does anybody know how to enable this feature to a protected sheet?

    Thanks in advance
    -Joseph

  2. #2
    Dave Peterson
    Guest

    Re: Enable grouping in protected worksheet

    If you already have the outlining applied, you can protect the worksheet in code
    (auto_open/workbook_open??).

    Option Explicit
    Sub auto_open()
    With Worksheets("sheet1")
    .Protect Password:="hi", userinterfaceonly:=True
    .EnableOutlining = True
    End With
    End Sub

    It needs to be reset each time you open the workbook. (excel doesn't remember
    it after closing the workbook.)

    If you're new to macros, you may want to read David McRitchie's intro at:
    http://www.mvps.org/dmcritchie/excel/getstarted.htm

    malik641 wrote:
    >
    > I'm mainly working with Excel 2000, but I also noticed this is the same
    > for 2003. When you protect a sheet that has grouped columns/rows, there
    > is no option to enable "Group" and "Ungroup". Does anybody know how to
    > enable this feature to a protected sheet?
    >
    > Thanks in advance
    >
    > --
    > malik641
    >
    > ------------------------------------------------------------------------
    > malik641's Profile: http://www.excelforum.com/member.php...o&userid=24190
    > View this thread: http://www.excelforum.com/showthread...hreadid=402039


    --

    Dave Peterson

  3. #3
    Forum Contributor
    Join Date
    06-10-2005
    Location
    Central Jersey
    Posts
    117
    Dave,
    I have the worksheets protected on a workbook_open event, I just didn't know what the syntax was for enabling the Group feature (.EnableOutlining = True)

    Thanks a lot! And thanks for the link.

+ Reply to Thread

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.6.0 RC 1