Results 1 to 4 of 4

Enable outlining in a shared/protected workbook

Threaded View

  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.

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