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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help Formatting Text in InputBox

Status
Not open for further replies.

ACH381

Technical User
Apr 3, 2002
49
US
Is there any way to format the text being entered into an inputbox in Word? I'm using an inputbox to get a password for a simple operation and would like to place **** instead of aaaa to add a little more security. I'd be happy to simply change the font to wingdings or something.
 
ACH381,
I am a VB programmer so this may need to be adjusted a little to work within Word VBA but,
The easiest way that I know of is to use a textbox rather than an Inputbox. Place it on a seperate form with only the textbox and a label, set it as the Startup object. The textbox has a PasswordChar property that yopu can set to *. The characters the User typed is still capable of being passed to your User validation routine without any extra coding.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top