+ Reply to Thread
Results 1 to 3 of 3

Hide a password

  1. #1
    Registered User
    Join Date
    12-15-2006
    Posts
    10

    Hide a password

    I am using the InputBox to require a password before running a macro. It works fine but the password displays when it is entered. Is there a way to display asterisks (*) instead?

    If InputBox("Please enter the password") <> "password" Then Exit Sub

    Thanks for your help. Ed

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good afternoon edhaddock

    There is a way of doing this - Daniel Klann shows how here :
    http://www.danielklann.com/excel/hid...a_inputbox.htm

    However, it is probably easier to use a textbox on a userform which has a property called "PasswordChar" which allows you to use any character you like as a password mask.

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Registered User
    Join Date
    12-15-2006
    Posts
    10
    Thanks for the help. It seems to work perfectly.

    Ed

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1