+ Reply to Thread
Results 1 to 4 of 4

User form to log in and unhide certain sheets

  1. #1
    Registered User
    Join Date
    07-30-2015
    Location
    Virginia, USA
    MS-Off Ver
    2010
    Posts
    3

    User form to log in and unhide certain sheets

    Hello,

    I am attempting to adjust the attached code to suit my needs. As the code currently stands you enter one username/password combination which in turn "unlocks" one sheet.

    UserName: user1
    Password: u1pass

    I would like to be able to have each user gain access to several different sheets when they enter their password. I would also like to have an admin log-in to unlock/unhide all sheets at once.

    I have seen other people post similar questions, and I have certainly tested out a variety of different methods based on those threads, but none seem to get the job done for me.

    Any assistance would be greatly appreciated.

    Thanks
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: User form to log in and unhide certain sheets

    but if they 'break' the code , couldnt they see all the password(s)?

  3. #3
    Registered User
    Join Date
    07-30-2015
    Location
    Virginia, USA
    MS-Off Ver
    2010
    Posts
    3

    Re: User form to log in and unhide certain sheets

    I typically would password protect the VBA project so that they would not have access to the code. I left it unprotected for now. Also, most of the people who would be using this spreadsheet are not that skilled with Excel to my knowledge.

  4. #4
    Registered User
    Join Date
    07-30-2015
    Location
    Virginia, USA
    MS-Off Ver
    2010
    Posts
    3

    Re: User form to log in and unhide certain sheets

    I ended up scrapping the whole idea of using user names and passwords. I just wrote a simple macro to export each user's specific set of sheets to a new workbook, remove all the links/formulas and just keep the values and then save it as their name. That way nobody has access to anything they shouldn't.

+ 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. [SOLVED] VBA to verify windows user name to unhide sheets
    By savetrees in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-09-2014, 11:41 AM
  2. [SOLVED] User form/checkbox hide/unhide rows based on cell value
    By ldonis in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-12-2014, 11:35 AM
  3. Replies: 4
    Last Post: 11-14-2013, 09:58 AM
  4. 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
  5. Excel 2007 : Using one user form to several sheets
    By rhonalddean in forum Excel General
    Replies: 0
    Last Post: 09-06-2011, 12:32 AM
  6. Hide/unhide sheets based on user names and passwords
    By rama1209 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-23-2011, 09:11 PM
  7. Hide/Unhide Sheets Form
    By dbarelli in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-01-2006, 10:09 AM

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