• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Input Box in VBA shouldn't display the text

Marsdon

New Member
Hi All,

I would like in to know whether this is possible in VBA input box.

For eg Look at the below image

As I have entered in the Input Box as Marsdon
upload_2014-5-8_15-14-13.png

But here I dont want the Text to be displayed as what I typed. Instead it should be ******

Can this be Done ??
 

Attachments

  • upload_2014-5-8_15-15-24.png
    upload_2014-5-8_15-15-24.png
    28.7 KB · Views: 3
The built-in VBA Input Box does not natively support masking.

You could write some very complicated code to achieve this with the input box, but a much better and simpler option would be to create a userform which looks just like the input box. The text entry area of the userform would be an ActiveX textbox control which has a PasswordChar property which you can set to *. It will then mask each character as you want.
 
Last edited:
Back
Top