+ Reply to Thread
Results 1 to 4 of 4

Enable outlining in a shared/protected workbook

  1. #1
    Registered User
    Join Date
    04-16-2009
    Location
    Ft. Lauderdale, FL
    MS-Off Ver
    Excel 2003
    Posts
    4

    Enable outlining in a shared/protected workbook

    I would like to know how the following code provided in the Excel Help Best Practice Forums , used to enable outlining on a protected sheet, can be applied to a shared workbook.

    Private Sub Workbook_Open()

    With Sheet1

    .Protect Password:="Secret", UserInterfaceOnly:=True

    .EnableOutlining = True

    End With

    End Sub
    After enabling 'Share Workbook' and re-opening the file it presents the following error:

    Run-time error '1004':
    Method 'Protect' of object '_Worksheet' failed
    Can it be modified to allow the outlining of protected sheets when the workbook is shared and the sheet is protected?
    Last edited by miles827; 04-22-2009 at 06:45 PM.

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: Enable outlining in a shared/protected workbook

    Good evening miles827
    Quote Originally Posted by miles827 View Post
    Can it be modified to allow the outlining of protected sheets when the workbook is shared and the sheet is protected?
    No. Protection cannot be set, unset or amended whilst the workbook is shared. Existing protection remains in place once sharing is switched on, but that's as far a sharing and protection will integrate.

    Look at Excel's help under "Features that are unavailable in shared workbooks".

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Registered User
    Join Date
    04-16-2009
    Location
    Ft. Lauderdale, FL
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Enable outlining in a shared/protected workbook

    Thank you for the reply.

  4. #4
    Registered User
    Join Date
    07-13-2012
    Location
    Calgary, Alberta, Canada
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Enable outlining in a shared/protected workbook

    Was the original requirement "Enable outlining in a shared/protected workbook" ever solved? Did you find a way to enable outlining without putting the protection in VBA?

+ 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