+ Reply to Thread
Results 1 to 5 of 5

Creating a password validation in a userform

  1. #1
    Registered User
    Join Date
    04-18-2012
    Location
    Indi
    MS-Off Ver
    Excel 2010
    Posts
    6

    Creating a password validation in a userform

    Hi All,

    Need some pointers on the following problem:

    I am using a userform to do data entry into an excel. However I don't want all data operators to have access to the underlying excel. For this I have put a button with the code as below:
    Please Login or Register  to view this content.
    It displays a textbox and prompts for a password. On putting the correct password the userform closes and teh excel comes in view. However I am unable to put a new button that will trigger the password validation and fire the IF rules.

    Any help would be much appreciated.
    Last edited by Leith Ross; 05-18-2012 at 07:57 PM. Reason: Added Code Tags

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,474

    Re: Creating a password validation in a userform

    It would be helpful to see the workbook with code and data in context.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    04-18-2012
    Location
    Indi
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Creating a password validation in a userform

    Hi TMShucks,

    Thanks for your reply. Unfortunately most of the content in the excel and userform is proprietary and would need a lot of sensitization before I can post it. To give a bit of context the form takes inputs on certain simple numeric fields and records them as individual entries in the excel. The excel by default is hidden using:
    Please Login or Register  to view this content.
    I just want that anybody who wants to see the excel carries a specific static password.
    Last edited by Leith Ross; 05-18-2012 at 07:58 PM. Reason: Added Code Tags

  4. #4
    Forum Contributor Toonies's Avatar
    Join Date
    07-30-2009
    Location
    Newcastle, UK
    MS-Off Ver
    Excel 2016
    Posts
    503

    Re: Creating a password validation in a userform

    Hi this might help you

    http://www.excelforum.com/excel-prog...rform-vba.html

    its one of royUK codes

    Please Login or Register  to view this content.
    or this

    http://www.excelbanter.com/showthread.php?t=429942

    Toonies
    Last edited by Toonies; 05-19-2012 at 08:50 AM.

  5. #5
    Registered User
    Join Date
    04-18-2012
    Location
    Indi
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Creating a password validation in a userform

    Works like magic .. Many Thanks Toonies !!

+ 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