ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   text characters (https://www.excelbanter.com/excel-programming/388483-text-characters.html)

Zaahir

text characters
 
Hi
On a userform being used as a LogOn, I have two textboxes...txt1 & txt2.
The end user will use txt1 as a UserName entrance & txt2 as a PassWord
entrance.

What code can i use to change the entry from displaying text to displaying
*****, as to provide some form of security? Can this be done?

Thanx in advance


Norman Jones

text characters
 
Hi Zaahir,

Try something like:

'=============
Private Sub UserForm_Initialize()
Me.TextBox2.PasswordChar = "*"
End Sub
'<<=============


---
Regards,
Norman



"Zaahir" wrote in message
...
Hi
On a userform being used as a LogOn, I have two textboxes...txt1 & txt2.
The end user will use txt1 as a UserName entrance & txt2 as a PassWord
entrance.

What code can i use to change the entry from displaying text to displaying
*****, as to provide some form of security? Can this be done?

Thanx in advance




Zaahir

text characters
 
Perfect
Thanx Norman

"Norman Jones" wrote:

Hi Zaahir,

Try something like:

'=============
Private Sub UserForm_Initialize()
Me.TextBox2.PasswordChar = "*"
End Sub
'<<=============


---
Regards,
Norman



"Zaahir" wrote in message
...
Hi
On a userform being used as a LogOn, I have two textboxes...txt1 & txt2.
The end user will use txt1 as a UserName entrance & txt2 as a PassWord
entrance.

What code can i use to change the entry from displaying text to displaying
*****, as to provide some form of security? Can this be done?

Thanx in advance






All times are GMT +1. The time now is 04:21 PM.

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