GetPassword
GetPassword
Displays a dialog with a text box that has hidden text and returns the text entered. If canceled or nothing is entered, an empty string is returned.
Syntax
App.GetPassword(Prompt)
Parameters
Prompt |
String, input |
|
The message string that is displayed on the dialog box. |
Remarks
Text entered is masked with the asterisk character rather than the actual text entered by the user.
Example
Sub Main()
MsgBox "You have entered:" & vbCrLf & vbCrLf & App.GetPassword("Enter a password:")
End Sub