Password mask

J

jose

I have this macro used as a password input box. My
question is how did I mask the user entry (*******)


Sub Macro9()
Dim V1 As Variant


V1 = Application.InputBox(prompt:="Enter Password",
Type:=1 + 2)
If V1 = False Then
MsgBox "You didn't enter a number"
Else
Worksheets("SHEET1").Range("A14").Value = V1
End If

End Sub
 
J

John Wilson

jose,

You can't do this with an Input Box.
Create a Userform with a TextBox and set the PasswordChar
property of the textbox to an asterisk.

John
 

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

Top