+ Reply to Thread
Results 1 to 3 of 3

login form using arrays

  1. #1
    Registered User
    Join Date
    04-26-2015
    Location
    london
    MS-Off Ver
    2010
    Posts
    1

    login form using arrays

    Hi guys

    Ive been given a task to complete and im finding it really difficult and would be grateful if you pros can help me understand and learn where i am having problems using the vba in excel.

    currently i have created the userform.

    textbox1 input the username
    textbox2 input the password
    and a command button ( to return the msgbox saying login succesfull or invalid user and pass)

    now i have to store the user and passwords using arrays.

    so i currently have.

    Please Login or Register  to view this content.
    and then

    Please Login or Register  to view this content.
    now this is where i need help.

    i need to use a function to check if user (1) matches pass(1) and then return a message to the user saying succesfull or if it is invalid pass or user return a message saying invalid details. (validation). Then continue the rule for the next if user (2) matches pass (2) etc.

    could you guys please help i have been stuck on this for around 14 hours now.

    Thanks you
    Last edited by zbor; 04-26-2015 at 06:24 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,637

    Re: login form using arrays

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    I've edit it this time for you.

  3. #3
    Forum Contributor
    Join Date
    08-15-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    349

    Re: login form using arrays

    Check this, working file on post #11;http://www.excelforum.com/excel-prog...iple-user.html
    Please click the * Add Reputation if this helps
    If solved remember to mark Thread as solved

    "I'm glad to help and this is not meant to sound smart, but either you have super-human vision to see all those controls cleared one by one with the code I posted, or your computer is really slow."

+ 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. Login Form
    By sn152 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-05-2014, 01:34 AM
  2. [SOLVED] Login sheet rather than login form?
    By mdovey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-06-2013, 05:17 PM
  3. Login ID form not working
    By amangupts in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 07-06-2011, 10:40 AM
  4. Login Form
    By phatus in forum Access Programming / VBA / Macros
    Replies: 5
    Last Post: 11-06-2010, 09:56 AM
  5. login form
    By missing in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-04-2006, 04:02 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