• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Mask Entries

dparteka

Member
The code below works fine, I'm looking to mask the password entry. I've researched the internet and found some postings that claim masking is not possible with an InputBox, does anyone know if this claim is true?

Code:
    Dim Pass As String
    Dim Prompt As String
    Dim Title As String
    Dim UserPass As String
     
    Pass = "TurnTheKey"
    Prompt = "Enter password to continue"
    Title = "Password Input"
    UserPass = InputBox(Prompt, Title)
    If UserPass <> Pass Then
        Prompt = "Incorrect password, try again"
        Title = "Incorrect Password"
        MsgBox Prompt, vbCritical, Title
        Exit Sub
    End If
 
Back
Top