+ Reply to Thread
Results 1 to 4 of 4

compile error can't assign to read-only property vba

  1. #1
    Registered User
    Join Date
    01-11-2013
    Location
    tennessee
    MS-Off Ver
    Excel 2010
    Posts
    8

    compile error can't assign to read-only property vba

    Wrote a simple code to unlock the grouping function in a protected worksheet seen below
    Please Login or Register  to view this content.

    Later added additional code to edit the objects in the protected woksheet

    .ProtectDrawingObjects = False

    Now I get the following error: Compile error: can't assign to read-only property


    Can anyone help this noobe fix this???


    Moderator's Note: Don't foget to use code tags. I'll do it for now. Thanks.
    Last edited by smorgan5765; 02-01-2013 at 03:30 PM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: compile error can't assign to read-only property vba

    Try this....

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    01-11-2013
    Location
    tennessee
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: compile error can't assign to read-only property vba

    Thank you Sixthsense! You were correct that did work but it basically unlocked all the cells again. I only want to let the user add /edit comments in the "unlocked cells" of the worksheet.
    Last edited by smorgan5765; 02-01-2013 at 03:36 PM.

  4. #4
    Registered User
    Join Date
    01-11-2013
    Location
    tennessee
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: compile error can't assign to read-only property vba

    Well through determination and research I have solved this issue with the following code:
    Please Login or Register  to view this content.
    Thanks to everyone who helped

+ 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