+ Reply to Thread
Results 1 to 5 of 5

VBA delteing Protected Sheets Permissions... HELP!!

  1. #1
    Registered User
    Join Date
    09-25-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    7

    VBA delteing Protected Sheets Permissions... HELP!!

    Hi,

    I have a protected sheet which I want people to be able to insert/delete rows as well as formating cells etc. I also have a Macro running on this sheet to allow group and ungrouping to happen while the sheet is protected.

    But when I close the workbook and re-open all the permissions on the protected sheet have disappeared... ie. the sheet is still protected but i can no longer insert/delete rows etc.

    I assume it is the Macro that is removing this... is there a way to stop this from happening??

    Any help would be greatly appreciated!

    Ben

    The Macro I am currently using if needed is:

    Private Sub Workbook_Open()
    With Sheet5
    .Protect Password:="Password", UserInterfaceOnly:=True
    .EnableOutlining = True
    End With
    End Sub

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,090

    Re: VBA delteing Protected Sheets Permissions... HELP!!

    The only function allowed in that macro is Outlining.

    You need to be specific about what you want to enable or disable (if it has previously been enabled).

    Please Login or Register  to view this content.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    09-25-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: VBA delteing Protected Sheets Permissions... HELP!!

    Quote Originally Posted by TMShucks View Post
    The only function allowed in that macro is Outlining.

    You need to be specific about what you want to enable or disable (if it has previously been enabled).

    Please Login or Register  to view this content.

    Regards, TMS
    Hi TMS,

    Thank-you for your help but it has unfortunatly only got me half way! I now have to enter the passowrd to 'activate' these permissions. Is there a way to change it so I don't have to do this??

    Thanks

    Ben

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,090

    Re: VBA delteing Protected Sheets Permissions... HELP!!

    ?

    Please Login or Register  to view this content.
    Regards, TMS

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,090

    Re: VBA delteing Protected Sheets Permissions... HELP!!

    Thanks for the rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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