Results 1 to 5 of 5

How to get a pop-up window to tell you when you type ind the wrong password?

Threaded View

Siaach How to get a pop-up window to... 10-12-2012, 05:14 AM
thisisgerald Re: How to get a pop-up... 10-12-2012, 06:57 AM
Siaach Re: How to get a pop-up... 10-12-2012, 07:20 AM
thisisgerald Re: How to get a pop-up... 10-14-2012, 05:23 AM
HaHoBe Re: How to get a pop-up... 10-14-2012, 05:35 AM
  1. #1
    Registered User
    Join Date
    10-08-2012
    Location
    København Denmark
    MS-Off Ver
    Excel 2010
    Posts
    2

    How to get a pop-up window to tell you when you type ind the wrong password?

    Hi.. I have this problem:
    Below i have the code for password protecting a save button. I would like to have a pop-up window to tell if you have typed in the wrong password. How can this be done??
    Best regards
    Simon Christensen

    Private Sub CommandButton1_Click()
     Dim pw As String
     pw = Application.InputBox("Enter password")
     Select Case pw
     Case "secret"
     'run code
     Case Else
     Exit Sub
     End Select
     
    End Sub
    Last edited by arlu1201; 10-12-2012 at 05:27 AM. Reason: Use code tags in future.

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