+ Reply to Thread
Results 1 to 6 of 6

login credential in userform

  1. #1
    Forum Contributor
    Join Date
    11-19-2015
    Location
    India
    MS-Off Ver
    excel 2013
    Posts
    124

    login credential in userform

    Hello everyone!

    Need your expert help!

    I have created a userform in this userform i require a login credential. In login ID sheet in column A i have login passwords and in column B i have Evaluator Names. Actually what i want when i click macro
    it should ask for the password and if i enter correct password which are in column A in login ID sheet then it should proceed further otherwise a message should prompt Access is denied, Enter correct password.
    At the same time when i enter correct password then Evaluator name from column B from Login ID sheet should copy and paste in userform in Evaluator Box like if i select password 12618 then Evaluator Name from column B
    Pratibha Sharma should copy and paste in userform in Evaluator Box.

    Regards,

    Xlhelp7
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    11-19-2015
    Location
    India
    MS-Off Ver
    excel 2013
    Posts
    124

    Re: login credential in userform

    Any Help!

    Regards,

    xlhelp7

  3. #3
    Forum Contributor
    Join Date
    11-19-2015
    Location
    India
    MS-Off Ver
    excel 2013
    Posts
    124

    Re: login credential in userform

    Hi,

    I have used below code to protect userform with password but this code is for single password if i use multiple password then its not working.

    My code

    Dim strPasswd
    strPasswd = InputBox("Enter Password", "Restricted Form")
    If strPasswd = "" Or strPasswd <> "12618" Or strPasswd = Empty Then
    MsgBox "Access is Denied", vbInformation, "Required Data"
    Exit Sub
    End If
    If strPasswd = "12618" Then
    End If

    Please help!
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor spitfireblue's Avatar
    Join Date
    01-29-2015
    Location
    Adelaide, Australia
    MS-Off Ver
    2007,2010,2016
    Posts
    611

    Re: login credential in userform

    Hi,

    Please use code tags in future.
    Without going away from what you have already done try this:

    Please Login or Register  to view this content.
    Regards,
    Stephen

    If you feel someone has helped you please thank them and click on the star on their post to add reputation.
    Please ensure that you use code tags where relevant, and mark solved threads as solved.
    Most of all please be respectful and understanding of others.

  5. #5
    Valued Forum Contributor spitfireblue's Avatar
    Join Date
    01-29-2015
    Location
    Adelaide, Australia
    MS-Off Ver
    2007,2010,2016
    Posts
    611

    Re: login credential in userform

    Here is another way to do it:

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    11-19-2015
    Location
    India
    MS-Off Ver
    excel 2013
    Posts
    124

    Re: login credential in userform

    Hi Stephen,

    will take care code tags in future.

    Thanks for your wonderful help!

    My issue is resolved by your code!

    Regards,

    Xlhelp7

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Setting up Userform Login Functions
    By KOBBY123 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-17-2016, 02:45 PM
  2. Is this even possible? Userform login - Change password userform box
    By chrismccarthy17 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-01-2016, 10:47 AM
  3. VBA Login code (userform)
    By DespoFYP in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-16-2014, 01:41 AM
  4. [SOLVED] Login form with Remember credential
    By gochel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-17-2013, 06:09 AM
  5. [SOLVED] Still having issues creating editable database with autonumber, credential capture, etc.
    By Orestees in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 09-20-2012, 02:06 PM
  6. Userform Login
    By clint182 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-28-2011, 01:55 PM
  7. Login Logout userform
    By poitachi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-19-2010, 03:01 PM

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