Dialog Box With Password Input
.ZMC
This macro will demonstrate how to display a dialog box and prompt for a password, which is masked (hidden) when the user types. The password is saved in a variable, which may be used to perform some other function.
Sub ZMain()
strPassword=MsgBoxGetPassword("Please enter your password:")
MsgBox "Your password is: "& strPassword
End Sub |