+ Reply to Thread
Results 1 to 7 of 7

Dots, instead of characters in InputBox

  1. #1
    Forum Contributor Gabor's Avatar
    Join Date
    02-15-2004
    Location
    Székesfehérvár, Hungary
    MS-Off Ver
    xl2016
    Posts
    226

    Dots, instead of characters in InputBox

    Hi Folks,

    I have an InputBox popping up first when the user attempts to open a UserForm and it asks for a password to unlock the protected worksheet. Works fine.
    Now, I'd like to have dots appearing in the InputBox, instead of the password itself.
    This is because we are operating many occasions via NetMeeting so I just do not want all the people in the world and their dogs to see what that password actually is.

    Arigato gozaimasu

    Gabor

  2. #2
    Registered User
    Join Date
    12-17-2007
    Posts
    9
    Hello!
    On the properties of your Input Box, put the dot character or whatever character you liked in the PasswordChar Property.

  3. #3
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    The inputBox does not have a password character property.

    You might add a textbox (which has a passwordcharacer property) to the userform and hide all other controls on Initialize until the proper password is entered.

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481
    Quote Originally Posted by Gabor
    Hi Folks,

    I have an InputBox popping up first when the user attempts to open a UserForm and it asks for a password to unlock the protected worksheet. Works fine.
    Now, I'd like to have dots appearing in the InputBox, instead of the password itself.
    This is because we are operating many occasions via NetMeeting so I just do not want all the people in the world and their dogs to see what that password actually is.

    Arigato gozaimasu

    Gabor
    it may be best to use a userform, with a textbox, then you will be able to set the textbox to password char in the properties window for the textbox, goto password char and enter *

    then with the command button you could have
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor Gabor's Avatar
    Join Date
    02-15-2004
    Location
    Székesfehérvár, Hungary
    MS-Off Ver
    xl2016
    Posts
    226
    All right, so there is no easy way out, gotta create another userform, to let the user in.
    Actually I like the idea to hide/unhide all the other controls with a loop, as a feasible alternative to the second UF.
    Thanks guys, I'm gonna get there now.

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    12-17-2007
    Posts
    9
    Quote Originally Posted by mikerickson
    The inputBox does not have a password character property.

    You might add a textbox (which has a passwordcharacer property) to the userform and hide all other controls on Initialize until the proper password is entered.
    mikerickson,

    my bad, thanks for correcting, you were correct, i was thinking of the textbox and not of the input box.

  7. #7
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good morning Gabor

    Just for completeness of answer, Ivan F Moala shows here how to force an input box to return asterisks (*) instead of characters - but you could make it show any character you please.

    However, this routine is not for the faint of heart, and you're probably better off using a UserForm.

    http://www.xcelfiles.com/API_09.html

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

+ 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