Results 1 to 5 of 5
  1. #1
    Silver Lounger
    Join Date
    Jul 2001
    Location
    Ottawa, Ontario, Canada
    Posts
    1,609
    Thanks
    0
    Thanked 1 Time in 1 Post

    Entering Passwords (VBA / Excel 2000 / SP3)

    I am using the Inputbox to accept a password from the user. Does anyone have a snippet of code to mask the input; or another method of accepting input that doesn't expose the response?
    Regards
    Don

  2. #2
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: Entering Passwords (VBA / Excel 2000 / SP3)

    If this is for a workbook or worksheet, can you use the:

    Application.Dialogs(xlDialog...).Show

    Method with xlDialogWorkbookProtect or xlDialogProtectDocument arguments?
    -John ... I float in liquid gardens
    UTC -7ąDS

  3. #3
    Gold Lounger
    Join Date
    Feb 2001
    Location
    Dublin, Ireland, Republic of
    Posts
    2,697
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: Entering Passwords (VBA / Excel 2000 / SP3)

    You can build a simple enough userform to achieve what you want. The standard TextBox available for userforms has a PasswordChar property which can be set to an asterisk or any other suitable character.

    Sample attached.

    Andrew C

  4. #4
    Silver Lounger
    Join Date
    Jul 2001
    Location
    Ottawa, Ontario, Canada
    Posts
    1,609
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Entering Passwords (VBA / Excel 2000 / SP3)

    John
    Thanks for the response. The password is being used to allow the VBA procedure to continue. But fear not; your post was enlightening.
    Regards
    Don

  5. #5
    Silver Lounger
    Join Date
    Jul 2001
    Location
    Ottawa, Ontario, Canada
    Posts
    1,609
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Entering Passwords (VBA / Excel 2000 / SP3)

    Andrew
    Thank you. That is exactly what I want.
    Regards
    Don

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •