Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Password input textbox

  1. #1
    Board Regular
    Join Date
    Mar 2002
    Location
    =ActiveCell.Address
    Posts
    478
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi everyone,

    Thanks in advance to anyone who can help here...

    I have a userform in a workbook where I want the user to enter a username and password before the macro then goes and does it's funky stuff.
    When they enter the password I want to show an asterisk for each character, rather than what they're entering (i.e. as you would expect.

    How do I set such a textbox up?

    Many thanks

    AJ

  2. #2
    Board Regular
    Join Date
    Mar 2002
    Location
    Little Italy
    Posts
    93
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Set the PasswordChar of that TextBox to "*".

    That can be done manually from the properties Window of the TextBox or by code like:

    UserForm1.TextBox1.PasswordChar = "*"

    change the UserForm1 and TextBox1 to whatever you have named those things.

  3. #3
    Board Regular
    Join Date
    Mar 2002
    Location
    =ActiveCell.Address
    Posts
    478
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default


    Excellent.

    Thanks!

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •