+ Reply to Thread
Results 1 to 4 of 4

Userform Combobox for Username and textbox password

  1. #1
    Registered User
    Join Date
    08-05-2017
    Location
    South Carolina
    MS-Off Ver
    Office 2013
    Posts
    15

    Userform Combobox for Username and textbox password

    Hello all, I am new to VB and have got Excel VBA for dummies to start and help me learn, but unable to find a solution.

    I have a userform setup that has a Combobox1 and a Textbox1. I am trying to set the coding up so that Combobox1 has a list of usernames and Textbox1 the user is able to enter their password. I have the rangesource for the Combobox1 set to get its list of names from column A and the password list is in column B from sheet "UserPass", but it will be hidden.

    My issue is getting the coding to validate the password based on the combobox value and then filling in the row on the worksheet "TimeSheet" that matches the username.

    I have attached my file with userform so far.

    Thanks for the help in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Userform Combobox for Username and textbox password

    Here's the validation part. I'll look at the rest after the weekend. I disabled the hide application to make it easier to work with.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    08-05-2017
    Location
    South Carolina
    MS-Off Ver
    Office 2013
    Posts
    15

    Re: Userform Combobox for Username and textbox password

    dflak, that is awesome!! Hoping I can code that well one day. I will work on the timesheet entry with the optionboxes this weekend and will post my results. Have a great weekend!

  4. #4
    Registered User
    Join Date
    08-05-2017
    Location
    South Carolina
    MS-Off Ver
    Office 2013
    Posts
    15

    Re: Userform Combobox for Username and textbox password

    I figured out how to output the information to a single cell, but not sure how to have it output to the row based on the name. I also updated the timesheet to reflect what I'm trying to have the userform output.

    I added code to the end so that it saves the workbook on exit also.

    Thank you for your help so far.

    Updated sheet attached.

    Update: I'm going to start a new thread for this issue to help keep the forum organized.
    Attached Files Attached Files
    Last edited by maroguy69; 08-21-2017 at 12:39 PM.

+ 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. VBA - Command Button, Userform, Username and Password
    By tramonroe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-11-2016, 06:19 AM
  2. Fill textbox with the username in another userform when login
    By Shunwen82 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-30-2015, 08:31 AM
  3. Replies: 0
    Last Post: 08-18-2015, 04:13 PM
  4. Username/Password Login userform code
    By Nitefox in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-17-2014, 02:43 PM
  5. Macro Running Userform for Username/Password
    By Escobarjr in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-03-2013, 12:08 PM
  6. UserName to deterine list in ComboBox, Password Protecting linked Cell
    By ron2k_1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-11-2011, 09:03 PM

Tags for this Thread

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