+ Reply to Thread
Results 1 to 5 of 5

User Password On A Button - Encrypt Password

  1. #1
    Registered User
    Join Date
    12-09-2003
    Posts
    53

    User Password On A Button - Encrypt Password

    Hi,

    Can someone tell me how to display a password a user enters in an input box associated with a button as xxxxx so that the actual password doesn't display as it is entered by user? Using code below.
    Please Login or Register  to view this content.
    Thank you much.
    MB
    Last edited by mab; 11-05-2010 at 08:18 AM. Reason: Added Code Tags

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: User Password On A Button - Encrypt Password

    Hello mab,

    The InputBox doesn't have a setting for passwords, i.e. showing an asterisk for the actual character typed. You will need to use a VBA UserForm with a TextBox control. Set the TextBox control's PasswordChar to an asterisk (*). When the user types, the only char displayed will be the asterisk.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    09-07-2009
    Location
    Hemet, CA
    MS-Off Ver
    Office 2007 Professional
    Posts
    111

    Re: User Password On A Button - Encrypt Password

    Hi mab
    Using that same approach as Leith Ross mentioned, I have attached a sample workbook that may work for you. It uses a userform that looks like an input box.
    Attached Files Attached Files
    Last edited by ABabeNChrist; 11-05-2010 at 01:12 AM.

  4. #4
    Registered User
    Join Date
    12-09-2003
    Posts
    53

    Re: User Password On A Button - Encrypt Password

    Thank you much for your help.

  5. #5
    Registered User
    Join Date
    12-09-2003
    Posts
    53

    Re: User Password On A Button - Encrypt Password

    Thank you for your assistance.

+ 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