Consulting

Results 1 to 3 of 3

Thread: Solved: Password Message Box

  1. #1

    Solved: Password Message Box

     
    Private Sub Workbook_Open() x = InputBox("Please enter password", "Password needed!") If x <> "Password" Then ActiveWorkbook.Close False End Sub
    I have a worksheet that has a form Button, once this button is clicked I want a pop up box to appear ..(this bit I can do )

    the message box needs to be an input password box , with the charachters starred out

    Can this be done ? Are there any tutorials on complex message boxes

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    No, you need to juse a custome form with a textbox that allows a passwordchar property.
    ____________________________________________
    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

  3. #3

    Thanks Guys

    This works a treat

Posting Permissions

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