+ Reply to Thread
Results 1 to 5 of 5

InputBox

  1. #1
    Forum Contributor
    Join Date
    02-24-2005
    Posts
    154

    InputBox

    I have written a little macro that generates an InputBox so that users can enter a password. If its correct they gain access, if not it pulls up a Message Box to tell them its invalid.
    Is there any code I can use that will just display "*" in the InputBox as they type in the password so that the real letters arn't displayed.

  2. #2
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243
    Hi,

    Have a look at the below page & its links which I found with a quick Google ("mask password" "in input box" excel sub):

    HTML Code: 

    hth
    Rob
    Rob Brockett
    Kiwi in the UK
    Always learning & the best way to learn is to experience...

  3. #3
    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 grahammal

    OK, you have two choices here :

    The easy way : Use a userform, set up a textbox and set the PasswordChar property to "*" or something.

    The hard way : Use APIs to intercept the keypresses and show the "*" onscreen instead of the characters. If you take this option, you might like to take a look at Ivan F Moala's site who explains how it's done and helpfully provides some code to do so.

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

    For my money, I think if there's an easier way to do something you should take it ...

    HTH

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

  4. #4
    Forum Contributor
    Join Date
    02-24-2005
    Posts
    154

    Password

    Have decided to go the UserForm way, looks & works just fine.
    Thanx to all

  5. #5
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243
    thanks for the feedback :-)

    DominicB, SNAP!
    The excelforum.com site that I use for posting shows that we responded with effectively the same answer (my suggestion links to the same page you suggested) in the same minute - that can't happen too often!

    Rob

+ 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