+ Reply to Thread
Results 1 to 2 of 2

Password Macro to view/hide specific tabs and rows

  1. #1
    Registered User
    Join Date
    10-01-2014
    Location
    nj
    MS-Off Ver
    office 2010
    Posts
    13

    Password Macro to view/hide specific tabs and rows

    I created a spreadsheet with multiple worksheets that are questionnaires with scoring. The individual results are displayed on each worksheet in the top 4 rows. They roll up to another worksheet that is a Summary page where all results are displayed. Each worksheet is protected so that only dropdown lists of answers can be selected and a cell for comments can be typed in. The workbook structure is also protected.

    I want to hide the summary page and I also want to hide the first 4 rows on the individual worksheet questionnaires so that those answering the questions do not see the results. Is there a way to create a password macro so that only I can see everything and those who receive the questionnaire don't see the Summary Page and the first 4 rows of each questionnaire?

    I thought about creating a second spreadsheet and then linking cells from one to the other but thought it would be much easier to just maintain a single spreadsheet rather than 2.

    I have no VBA skills and little familiarity with macros (but I'm a quick learner!) and need someone to build it for me.

    Thanks for your help

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Password Macro to view/hide specific tabs and rows

    Here is a macro the should work for you.
    I also attached a workbook you can use to copy your own sheets to.
    The macro being already working inthis workbook, you should have no problem.

    If you want to see the VBA code, the project is protected by a password being: Password
    You can get to the Visual Basic Editor by clicking on ALT+F11.
    You should see the project named MKLESS.xlsm
    If you double clink on it, it will ask you your password. Enter: Password

    In the code, all you sheets password have been set to Password.
    You can change this for your own password.

    The macro looks for a sheet with the word "Summary" in its name.
    Any sheet with the word Summary in its name will be hidden when asked to.
    All other sheet name will see their rows 1 to 4 hidden

    You can run this macro by clicking on the VIEW menu and then on the Macro one.
    A window should open and show you all the macros available.
    If there is too many of those, you can select to show only those of This Workbook.
    Double click on the macro name or click on it once an then on RUN. Then follow the instructions.

    Here is the code:
    Please Login or Register  to view this content.
    You can change the wording to suit your need.
    I hope this will help you.
    Regards
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

+ 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. Protect/Hide worksheet tabs by password
    By seash in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-07-2015, 11:48 AM
  2. Replies: 1
    Last Post: 07-23-2015, 10:06 AM
  3. Protect/Hide worksheet tabs by password
    By seash in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-02-2015, 10:41 AM
  4. Hide a Excel Master sheet with password ( No body can,t open & View)
    By Anwarap27 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-01-2015, 08:54 PM
  5. Macro to hide and unhide rows but requiring a password to unlock
    By k0st4din in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-12-2014, 11:45 AM
  6. Macro to Hide Rows in Protected Rheet and Re-Apply Password
    By arg1229 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-16-2012, 12:28 AM
  7. Hide specific tabs and password protect
    By dawnmau in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-29-2010, 12:23 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