ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   how change characres to stars when somebody is writting password (https://www.excelbanter.com/excel-programming/373614-how-change-characres-stars-when-somebody-writting-password.html)

[email protected]

how change characres to stars when somebody is writting password
 
I created macro and only few people will use it. How change characters to
stars(on monitor) when somebody is writing password?

below Is macro code:

Private Sub CommandButton2_Click()

Dim z As String

z = InputBox("enter password", "password")

If z = "example" Then
UserForm1.Show
Else
Exit Sub

End If
End Sub


Dave Peterson

how change characres to stars when somebody is writting password
 
You can't change the password character in an Inputbox. But you could use a
textbox on a userform with that textbox's .passwordchar property.

wrote:

I created macro and only few people will use it. How change characters to
stars(on monitor) when somebody is writing password?

below Is macro code:

Private Sub CommandButton2_Click()

Dim z As String

z = InputBox("enter password", "password")

If z = "example" Then
UserForm1.Show
Else
Exit Sub

End If
End Sub


--

Dave Peterson


All times are GMT +1. The time now is 11:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com