+ Reply to Thread
Results 1 to 6 of 6

Grouping in protected sheet issue

  1. #1
    Registered User
    Join Date
    09-05-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    12

    Grouping in protected sheet issue

    Hi Gurus,

    I have come across the problem of not being able to use the group function when protecting a worksheet.
    Googling the problem I have found the below code to add to the worksheet. But when I attempt to group,
    I still get the unprotect sheet to use grouping funtion error message. Can anyone assist? Thanx

    Please Login or Register  to view this content.
    Last edited by Cutter; 09-15-2012 at 03:22 PM. Reason: Added code tags

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Grouping in protected sheet issue

    Hi, malaka76,

    the code you found has to be placed in ThisWorkbook as it will be started on opening the workbook (this event can only be started from there - and from a normal module if the procedure is named Auto_Open). If you placed it behind a Worksheet it will never fire...

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Grouping in protected sheet issue

    @ malaka76

    Welcome to the forum.

    Please notice that code tags have been added to your post(s). The forum rules require them so please keep that in mind and add them yourself whenever showing code in any of your future posts. To see instructions for applying them, click on the Forum Rules button at the top of the page and read Rule #3.
    Thanks.

  4. #4
    Registered User
    Join Date
    09-05-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Grouping in protected sheet issue

    Hi HaHoBe,

    Cheers for this tip. This works prefectly.

    Regards CG

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Grouping in protected sheet issue

    @ malaka76

    Welcome to the forum.

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  6. #6
    Registered User
    Join Date
    03-23-2013
    Location
    Fleet, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Grouping in protected sheet issue

    Hi everyone

    I have exactly the same problem in Excel 2010, but I have no knowledge of VB. Is it possible to provide some simple step-by-step instructions to allow me to apply the above fix to a worksheet? Huge thanks in advance.

+ 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