ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   how can I change input statement to show only stars for password **** (https://www.excelbanter.com/excel-discussion-misc-queries/122080-how-can-i-change-input-statement-show-only-stars-password-%2A%2A%2A%2A.html)

SAM SEBAIHI

how can I change input statement to show only stars for password ****
 

When you enter your password in this line, you can see what you are entering, how can you change the following line so it will only show ******** as a password when you are entering your password??


ans = InputBox("Enter your password", "password")

Thank you for all of you help


--------------------------------------------------------------------------------



Dave Peterson

how can I change input statement to show only stars for password****
 
The builtin inputboxes won't let you do this.

But you could create a small userform and use the .passwordchar property to hide
that input.

SAM SEBAIHI wrote:


When you enter your password in this line, you can see what you are entering,
how can you change the following line so it will only show ******** as a
password when you are entering your password??


ans = InputBox("Enter your password", "password")

Thank you for all of you help

------------------------------------------------------------------------------


--

Dave Peterson

Dave Peterson

how can I change input statement to show only stars for password****
 
ps. This is a text only newsgroup. You may want to refrain from posting in
HTML.

SAM SEBAIHI wrote:


When you enter your password in this line, you can see what you are entering,
how can you change the following line so it will only show ******** as a
password when you are entering your password??


ans = InputBox("Enter your password", "password")

Thank you for all of you help

------------------------------------------------------------------------------


--

Dave Peterson

JMB

how can I change input statement to show only stars for password
 
One way you could approach it is to set up a userform with a textbox for
entering the password. Textboxes have a passwordchar property that allows
you to display an "*" instead of the actual text.


"SAM SEBAIHI" wrote:


When you enter your password in this line, you can see what you are entering, how can you change the following line so it will only show ******** as a password when you are entering your password??


ans = InputBox("Enter your password", "password")

Thank you for all of you help


--------------------------------------------------------------------------------



SAM SEBAIHI

how can I change input statement to show only stars for password ****
 
I didn't know, I will refrain from posting HTML. Thank you.
How can you use .passwordchar property with this ans = InputBox("Enter your
password", "password") I am fairly new in VB.

Please let me know.
Thank you for you help.

"Dave Peterson" wrote in message
...
The builtin inputboxes won't let you do this.

But you could create a small userform and use the .passwordchar property
to hide
that input.

SAM SEBAIHI wrote:


When you enter your password in this line, you can see what you are
entering,
how can you change the following line so it will only show ******** as a
password when you are entering your password??


ans = InputBox("Enter your password", "password")

Thank you for all of you help

------------------------------------------------------------------------------


--

Dave Peterson




Dave Peterson

how can I change input statement to show only stars for password****
 
Inputbox won't allow this.

You'll have to make a userform.

Check Debra Dalgleish's site:
http://contextures.com/xlUserForm01.html

Tom Ogilvy posted these links:
Peter Aiken Articles:
Part I
http://msdn.microsoft.com/library/en...FormsPartI.asp
Part II
http://msdn.microsoft.com/library/en...ormsPartII.asp

SAM SEBAIHI wrote:

I didn't know, I will refrain from posting HTML. Thank you.
How can you use .passwordchar property with this ans = InputBox("Enter your
password", "password") I am fairly new in VB.

Please let me know.
Thank you for you help.

"Dave Peterson" wrote in message
...
The builtin inputboxes won't let you do this.

But you could create a small userform and use the .passwordchar property
to hide
that input.

SAM SEBAIHI wrote:


When you enter your password in this line, you can see what you are
entering,
how can you change the following line so it will only show ******** as a
password when you are entering your password??


ans = InputBox("Enter your password", "password")

Thank you for all of you help

------------------------------------------------------------------------------


--

Dave Peterson


--

Dave Peterson


All times are GMT +1. The time now is 05:43 PM.

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