Vba - Password

  • Thread starter Thread starter ajliaks
  • Start date Start date
A

ajliaks

Hi all,

I try to use a userform whith a textbox to input Password.

Does anybody knows how to change the alphanumerical characters int
"*"

For example, when inputing "1234" userform must show "****"

Thanks in advance,
Aldo
 
When you're designing the form, select the textbox.

Hit F4 (to see its properties).
Scroll down to PassWordChar
and type in the character you want to see (*).

or specify it in the initialize procedure:

Option Explicit
Private Sub UserForm_Initialize()
Me.TextBox1.PasswordChar = "*"
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top