+ Reply to Thread
Results 1 to 11 of 11

Hide Selected Sheets And No Unhide Without Entering Password

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Post Hide Selected Sheets And No Unhide Without Entering Password

    Hello Evryone

    i want to hide selected sheets and when i want to unhide them, ask for password to unhide the sheets

    plz help
    haroon2015

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Hide Selected Sheets And No Unhide Without Entering Password

    Put something like:
    Please Login or Register  to view this content.
    in the sheet object module

    or use xlsheetveryhidden to make the sheets only unhideable by code and make your own routine/button.

  3. #3
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Re: Hide Selected Sheets And No Unhide Without Entering Password

    thanx for reply

    but if i have sheet1, sheet2, sheet3, sheet4, sheet5, sheet6, sheet7, sheet8

    and

    i want only hide sheet1, and sheet7

    then ?

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Hide Selected Sheets And No Unhide Without Entering Password

    In the code "Me" refers to the sheet object in which the code is stored, so if you put it in only the sheet1 and sheet7 modules it will only affect those sheets. Have a look at the attachment for an example.
    Attached Files Attached Files

  5. #5
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Re: Hide Selected Sheets And No Unhide Without Entering Password

    working very well but

    step 1st = if when i type password it looks should be like (********)

  6. #6
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Hide Selected Sheets And No Unhide Without Entering Password

    Hi, that is more complicated. You have two options:
    -Create your own userform instead of an inputbox and set the passwordchar property to *
    -Use the code in the link below (post #3) to create an inputbox with passwordchar "*" using API:
    http://www.mrexcel.com/forum/excel-q...asterisks.html

  7. #7
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Re: Hide Selected Sheets And No Unhide Without Entering Password

    ragulduy

    PLZ HELP WITH THIS ONE

    Create your own userform instead of an inputbox and set the passwordchar property to *

  8. #8
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Hide Selected Sheets And No Unhide Without Entering Password

    What do you need help with?

  9. #9
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Re: Hide Selected Sheets And No Unhide Without Entering Password

    Using userform to protect password multiple sheets

  10. #10
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Hide Selected Sheets And No Unhide Without Entering Password

    I would suggest you need to make a new thread on how to create a userform, or trying reading a book or looking on google. There are many walkthroughs available for this. Here is a link to get you started:
    https://www.google.co.uk/search?q=vb...54.SRk0-vVrD_o

  11. #11
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Re: Hide Selected Sheets And No Unhide Without Entering Password

    ok thanx a lot

+ 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. UNHIDE Columns by entering password
    By meadmoon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-23-2013, 10:48 AM
  2. Hide/Unhide rows on multiple sheets when dropdown selected from sheet 1
    By tammhelp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-02-2012, 10:33 PM
  3. Switchboard in Excel. Password to hide and unhide sheets. User form hangs
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-21-2011, 06:27 PM
  4. hide / unhide separate sheets based on password
    By spudinsane in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-27-2011, 04:48 AM
  5. vba to hide / unhide separate sheets based on password (bis)
    By sigeg in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-26-2011, 05: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