I have following Input box for excel file. I don\'t want to show typing characters and need to show input box characters * , how to do this?
Private Sub Wor
Use a UserForm Create a userform that has a Textbox, and Two Buttons In the textbox Properties, enter * in the PasswordChar Box
Use the code below in the userForm module.
Private Sub CommandButton1_Click()
If TextBox1 = "123456" Then
MsgBox "Correct"
Else
MsgBox "Incorrect"
End If
Unload Me
End Sub
Private Sub CommandButton2_Click()
'cancel button
Unload Me
End Sub
Private Sub UserForm_Initialize()
Me.Caption = "Enter Password"
End Sub
Your userform will look like this