+ Reply to Thread
Results 1 to 3 of 3

Subtotal issues with protection

Hybrid View

bgreen Subtotal issues with... 06-02-2009, 09:42 AM
JONvdHeyden Re: Subtotal issues with... 06-02-2009, 10:04 AM
bgreen Re: Subtotal issues with... 06-02-2009, 11:11 AM
  1. #1
    Registered User
    Join Date
    06-01-2009
    Location
    MD, USA
    MS-Off Ver
    Excel 2007
    Posts
    25

    Subtotal issues with protection

    Hello - I have a pretty straight forward spreadsheet that I want to keep protected so no one can adjust formulas or anything else, however, it is a large list of items that I have subtotaled. I do want the end user to have the ability to expand and contract the subtotal sections but it won't let them once the sheet is protected. Any thoughts on how I can accomplish this?Thanks!
    Matt

  2. #2
    Forum Contributor
    Join Date
    04-16-2009
    Location
    Stellenbosch, South Africa
    MS-Off Ver
    Excel 2003; Excel 2007; Excel 2010; Excel 2013
    Posts
    136

    Re: Subtotal issues with protection

    You need to protect it with code, something like:

     
    With ActiveSheet
        .EnableOutlining = True
        .Protect contents:=True, userInterfaceOnly:=True
    End With
    Regards

    Jon (Excel 2003, 2007, 2010, 2013)

  3. #3
    Registered User
    Join Date
    06-01-2009
    Location
    MD, USA
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Subtotal issues with protection

    Thanks for the assistance. I added the code to the VBA Code section for that sheet and then locked the sheet, but am getting the same errors. Could you provide some direction on exactly where I enter the code and anything I might be doing wrong?

    Thanks!
    Matt

+ 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