+ Reply to Thread
Results 1 to 8 of 8

allow hide/unhide rows&columns when sheet protected (macro)

  1. #1
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Prefer Excel 2003 but 2007 is great!
    Posts
    1,139

    allow hide/unhide rows&columns when sheet protected (macro)

    Hello all

    just wondering how i can integrate the user to have the ability to hide/unhide rows&columns when the sheet is protected.

    my code is below...much appreciated!

    Please Login or Register  to view this content.
    thxs!

  2. #2
    Administrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: allow hide/unhide rows&columns when sheet protected (macro)

    The parameters you want to add to you protection scheme are:
    Please Login or Register  to view this content.

    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 07-22-2011 at 11:44 AM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Prefer Excel 2003 but 2007 is great!
    Posts
    1,139

    Re: allow hide/unhide rows&columns when sheet protected (macro)

    thx u kind sir!

  4. #4
    Administrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: allow hide/unhide rows&columns when sheet protected (macro)

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  5. #5
    Registered User
    Join Date
    04-13-2013
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: allow hide/unhide rows&columns when sheet protected (macro)

    This allows the user to delete rows, not unhide/hide. is there a code for that?

  6. #6
    Administrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: allow hide/unhide rows&columns when sheet protected (macro)

    The code in post #2 allows hiding and unhiding rows, too.

  7. #7
    Registered User
    Join Date
    04-13-2013
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: allow hide/unhide rows&columns when sheet protected (macro)

    Thank you for the response, but I should have been more specfic---I only want to allow rows to be hidden/unhidden, not deleted or change row height or format. Is there a code to allow hide/unhide only?

  8. #8
    Registered User
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,147

    Re: allow hide/unhide rows&columns when sheet protected (macro)

    I guess it will be good if you open a new thread for your question.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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