Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passwords as * instead of characters

Status
Not open for further replies.

flaviooooo

Programmer
Joined
Feb 24, 2003
Messages
496
Location
FR
Hi,
this problem is located in Excel 97.

I have an inputbox where i want to ask for a password etc. but i'd like to have the password-entry seen as **** instead of characters. I hope you understand what i mean...

Thanks
 
Can't be done in aninputbox - use a userform with a textbox and commandbutton
Set the textbox passwordchar property to * and on your commandbutton, some code like:
Activesheet.protect password:=frmName.textboxName.text Rgds
Geoff
"Some cause happiness wherever they go; others whenever they go."
-Oscar Wilde
 
ok, thanks
but another stupid question...

how do i add a userform in excel??
 
Go to the VBE and make sure your workbook is the current project then just goto
Insert>Userform Rgds
Geoff
"Some cause happiness wherever they go; others whenever they go."
-Oscar Wilde
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top