+ Reply to Thread
Results 1 to 6 of 6

PW Protected Macros Needed to 1) Hide Certain Worksheets & 2) Unhide Worksheets & Columns

  1. #1
    Registered User
    Join Date
    08-02-2011
    Location
    Madison, USA
    MS-Off Ver
    Excel 2010
    Posts
    51

    Exclamation PW Protected Macros Needed to 1) Hide Certain Worksheets & 2) Unhide Worksheets & Columns

    Greetings, Excel Friends

    I could use some expertise/guidance on this request. I require two macros that are password protected to hide or unhide vital imformation that only persons who maintain the workbook should be able to view. Here are descriptions of each:

    Macro/VBA #1: Entitled 'Unlock_Hidden_Material'
    What it needs to do:

    1) Prompt user for a password (password entry box with OK and Cancel). If user enters correct password into prompt box (password is 'NIOSHSD') then the rest of this macro would proceed. If nothing or the incorrect password is entered into the password prompt box, nothing happens and the macro does not run.
    2) If password is correctly entered the VBA: Unhides HIDDEN worksheets 'Paste BI Report Here' and 'Macros'.
    3) Lastly, I need this to unhide columns A, B, C, and H in worksheet that is never hidden and always present called 'WI SHSD'.

    Macro/VBA #2: Entitled 'Lock_Hidden_Material'
    What it needs to do:

    1) Prompt user for a password (password entry box with OK and Cancel). If user enters correct password into prompt box (password is 'NIOSHSD') then the rest of this macro would proceed. If nothing or the incorrect password is entered into the password prompt box, nothing happens and the macro does not run.
    2) If password is correctly entered the VBA: (re)-HIDES worksheets named 'Paste BI Report Here' and 'Macros'.
    3) Lastly, I need this to (re)-HIDE columns A, B, C, and H in worksheet that is never hidden and always present called 'WI SHSD'.

    I am deferring to your excel wisdom for guidance with this last piece of the puzzle for a massive project I have been working on for many months now! :D

  2. #2
    Registered User
    Join Date
    06-25-2014
    Location
    Budapest, Hungary
    MS-Off Ver
    2007
    Posts
    40

    Re: PW Protected Macros Needed to 1) Hide Certain Worksheets & 2) Unhide Worksheets & Colu

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-02-2011
    Location
    Madison, USA
    MS-Off Ver
    Excel 2010
    Posts
    51

    Re: PW Protected Macros Needed to 1) Hide Certain Worksheets & 2) Unhide Worksheets & Colu

    This worked great! Thanks very much :D

  4. #4
    Registered User
    Join Date
    08-02-2011
    Location
    Madison, USA
    MS-Off Ver
    Excel 2010
    Posts
    51

    Re: PW Protected Macros Needed to 1) Hide Certain Worksheets & 2) Unhide Worksheets & Colu

    Hi. So, as for my thread title, I have a specific solution that must be in place but I did not know how to do it. In other words, I am not so lost as to say: How Do I Hide or Unhide Worksheets, but rather know for a fact that I required a password protect prompt proceeded by a hide worksheets/columns or unhide them etc.

    May I ask how I would otherwise word this specifically? I read the rules and am at a loss. Not trying to troll - just the first time I have ever been flagged for this. Thanks!
    Aimee

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

    Re: PW Protected Macros Needed to 1) Hide Certain Worksheets & 2) Unhide Worksheets & Colu

    After additional review, your thread title is fine. We appreciate the thought put into accurate titles and yours suffices.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    _________________
    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!)

  6. #6
    Registered User
    Join Date
    08-02-2011
    Location
    Madison, USA
    MS-Off Ver
    Excel 2010
    Posts
    51

    Re: PW Protected Macros Needed to 1) Hide Certain Worksheets & 2) Unhide Worksheets & Colu

    Thanks. I've marked the thread as SOLVED.

+ 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. How to unhide rows in protected worksheets
    By sarahmascara2014 in forum Excel General
    Replies: 1
    Last Post: 05-29-2014, 11:18 PM
  2. [SOLVED] Hide/Unhide columns in multiple worksheets based on item chosen in a drop down list.
    By Gattaca2014 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 02-27-2014, 01:31 PM
  3. [SOLVED] allow hide/unhide rows&columns when sheet protected (macro)
    By jw01 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-15-2013, 03:18 AM
  4. Hide & Unhide columns in Protected sheet
    By Anirudh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-01-2008, 06:46 AM
  5. [SOLVED] Unhide hidden/protected worksheets
    By davegb in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-01-2005, 10:05 PM

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