Consulting

Results 1 to 2 of 2

Thread: make the characters in password entry "*"

  1. #1

    make the characters in password entry "*"

    Hi, I have a button on a sheet on that button this code:

    On Error Resume Next
    Password = InputBox("Type password", "Password Entry", vbOKCancel)
    If Password = "password2" Then
    Sheet8.Visible = xlSheetVisible
    Sheets("Sales person 2").Select
    Else
    Sheet8.Visible = xlSheetHidden
    If Password <> "password" Or Password = "" Then
    MsgBox ("Entered password was incorrect or was not entered")
    End If
    End If

    but when the user enters the password comes as the letters I want to chnage that to the * so the password entry would be hidden.


    Thanks

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    I would suggest you build a custom form and use a textbox there. That has a paswword char property that you can set to * so the letter doesn't echo back.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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