i am using the InputBox finction for taking the password.But at the same time i want to mask the password so that this comes in an "*" format.
So please suggest me someting in this regard.
Test Automation Engineer
Inputbox doesnt provide that facility.If you are looking for secured password,
Go to "all programs>qtp>tools>password encoder"
get your encoded password and paste it in input box
<font color="blue">[i]If there is no struggle, there is no progress!
I know about that.
I am using the IinputBoX function in an excel macro.
I want to mask the password in realtime without using the QTP password Encrytion tool.
This can't be done. only way you can mask is if you are using excel create a form in excel then mask that text field. with input box not possible.
I do not now exactly what you need to do , but yes you can create with excel a customized form to type a Hidden password.
So in the code u use an inputbox, retrieve the password and what u wish to do once u retrieve the input box entry.
I suggest u can use a Crypt.Excrypt method to encrypt the password retrieved from the inputbox.
str = Crypt.Encrypt(InputBox("Please provide a password"))
What is the excel operation?. [img]/images/graemlins/laugh.gif[/img] [img]/images/graemlins/confused.gif[/img]
Winds of Change
the code str = Crypt.Encrypt(InputBox("Please provide a password")) is not working for me.
The operation is to take the password and mask the same at a realtime while entering in the InputBox.
What is the error u get just post the same
i am not getting any error but i am just not able to input the encypted password.
password should be encrypted as per the requirement.
check out the posts below
when things gets harder ,the harder gets going