+ Reply to Thread
Results 1 to 5 of 5

Protecting sheets

  1. #1
    Registered User
    Join Date
    06-03-2007
    Location
    Cambridge, UK
    Posts
    15

    Protecting sheets

    Hi there, first post and first question!!

    Is it possible to protect a sheet and still use the expansion buttons for the grouping of data? I have tried to get around this but whenever the sheet is protected I cannot use the expansion. The idea is for employees to be able to enter mass data and then hide the cells for the figures to be summarised using a 'sum' function at the end of the row. i.e managers want the final figures but not all the data on a monthly basis.

    Also - I am having the same issues with a macro on the front sheet, when the sheet is protected the macro comes up with an error message as it copies previous months figures and pastes them across to give a 'movement in the month' column for financial reporting. I am sure it is possible to protect the data and have the macro still run.

    Any help appreciated!

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Take a look at these links

    http://www.ozgrid.com/Excel/outlining-protected.htm

    http://www.ozgrid.com/VBA/excel-macr...cted-sheet.htm


    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    06-03-2007
    Location
    Cambridge, UK
    Posts
    15
    So just copy the code listed and paste into the code tablet for each sheet i want to use (obviously changing the password) and then all the expansion buttons should work automatically?

  4. #4
    Registered User
    Join Date
    06-03-2007
    Location
    Cambridge, UK
    Posts
    15
    Ah, I see !!

    One final question then - I have got multiple sheets that I want to use this function for within the workbook.

    How should the code look in this instance, i.e......

    Private Sub Workbook_Open()
    With Sheet3, sheet7, sheet9
    .Protect Password:="Secret", UserInterfaceOnly:=True
    .EnableOutlining = True
    End With
    End Sub


    As it only works at present with the initial sheet (sheet3)

  5. #5
    Registered User
    Join Date
    06-03-2007
    Location
    Cambridge, UK
    Posts
    15
    Again - figured it out

    Please Login or Register  to view this content.
    Last edited by VBA Noob; 06-03-2007 at 11:15 AM.

+ 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