+ Reply to Thread
Results 1 to 4 of 4

Protected Sheet Allow Edit Objects

  1. #1
    Registered User
    Join Date
    04-01-2010
    Location
    Orlando, FL
    MS-Off Ver
    Excel 2007
    Posts
    36

    Protected Sheet Allow Edit Objects

    Hi all,

    I have a sheet that I protect on workbook open with the following:

    Please Login or Register  to view this content.

    I would also like to have Edit of Objects enabled however I am running into errors whenever I add that.

    Any thoughts?

    Thank you,
    Jon

  2. #2
    Registered User
    Join Date
    03-10-2010
    Location
    Madrid, Spain
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Protected Sheet Allow Edit Objects

    Hello Jon.
    In a similar case I have a protected sheet with a lot of numerical data and with a shape floating above. When I protect the sheet I select the option Modify Objects that allows me to change the text header in the shape, without touching the data. It´s equivalent in code (if I record a macro) is

    DrawingObjects:=False

    So your code will be:

    Private Sub Workbook_Open()

    With Worksheets("Template")
    .EnableOutlining = True
    .EnableAutoFilter = True
    .Protect Password:="", _
    Contents:=True, DrawingObjects:=False, UserInterfaceOnly:=True, _
    AllowFormattingCells:=True
    End With
    End Sub
    I´m not sure if this will be of any help for your purpose.

    Eloy

  3. #3
    Registered User
    Join Date
    04-01-2010
    Location
    Orlando, FL
    MS-Off Ver
    Excel 2007
    Posts
    36

    Re: Protected Sheet Allow Edit Objects

    Thank you. That got me past my first issue. Now I am needing to exclude the Charts and Chart objects as I have a macro that runs that updates the colors of specific series and is failing when the sheet is protected.

    I tried to add

    Please Login or Register  to view this content.
    where I added the DrawingObjects but that did not work.

    Any thoughts?

    Thank you.

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Protected Sheet Allow Edit Objects

    You cannot exclude certain types of objects. It's all or nothing, I'm afraid.
    Remember what the dormouse said
    Feed your head

+ 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