+ Reply to Thread
Results 1 to 2 of 2

allowing group/ungroup function in protected sheet

  1. #1
    Registered User
    Join Date
    07-20-2018
    Location
    mcallen
    MS-Off Ver
    ms office 13
    Posts
    2

    allowing group/ungroup function in protected sheet

    i found this code, and it works well so long as i haven't closed my workbook. yes i saved my data before closing. but when i open the workbook it won't let me use the group and ungroup "+".

    i tried this from a previous thread, was told to not reply in their thread, so here is my dilemma:


    "Drop this in "ThisWorkbook" under your Microsoft Excel Objects in VBA:

    Private Sub Workbook_Open()
    Dim wksht As Worksheet
    For Each wksht In ThisWorkbook.Sheets
    With wksht
    .Unprotect "password"
    .EnableOutlining = True
    .Protect "password", contents:=True, userInterfaceOnly:=True
    End With
    Next wksht
    End Sub

    "

    *This code works, but once i open it again, i can't group/ungroup. can someone please help me out with this asap!!!*

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: allowing group/ungroup function in protected sheet

    Hello My Friend

    I will look at this for you.

    However I cannot respond because you have broken another of our rules.

    Please insert the code tags so that we can help you.

    You might also want to attach a sample.

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. allowing group/ungroup function in protected sheet
    By Elainefish in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-13-2023, 02:05 PM
  2. Enable Group/Ungroup in protected sheet
    By UzairHakim in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-07-2013, 08:11 AM
  3. [SOLVED] Group/Ungroup in a Protected Sheet
    By ExcelManager01 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-21-2013, 10:39 AM
  4. Group/Ungroup with sheet protected
    By robrobet in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-03-2013, 03:52 PM
  5. need to ungroup and group rows while sheet is protected
    By drewship in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-29-2010, 11:55 AM
  6. Group/ungroup columns in protected sheet
    By bobens_83 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-24-2008, 10:36 AM
  7. Protected Sheet (Group/Ungroup)
    By Merlin54k in forum Excel General
    Replies: 5
    Last Post: 05-14-2007, 03:39 AM
  8. [SOLVED] Group/Ungroup with sheet protected
    By Holt88 in forum Excel General
    Replies: 4
    Last Post: 02-17-2006, 06:10 PM

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