+ Reply to Thread
Results 1 to 6 of 6

User Form to execute search and return all values to the user form for editing

  1. #1
    Registered User
    Join Date
    04-20-2013
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    29

    User Form to execute search and return all values to the user form for editing

    I have a user form that I created that allows the entry of employee information that is then saved to a worksheet. The fields are:
    First Name
    Last Name
    Hire Date
    Hourly Pay Rate
    Title / Position
    Mon Start
    Mon End
    (continues through Sun End)

    I have attached a copy of the code for this user form.

    I want to create a duplicate user form that will allow a search by employee first or last name and return all of the values for that employee from the worksheet back into the user form to edit any of the entries and use a Save Changes command button to return the changes back to the worksheet.

    Also, if the search produces multiple matches, display First and Last name in a list to select the correct employee info to return.

    Thanks in advance for your assistance and let me know if you need any other info.

    Please Login or Register  to view this content.
    Tom
    Attached Files Attached Files
    Last edited by Leith Ross; 05-11-2013 at 04:57 AM. Reason: Copied code from text file and placed it in the post.

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: User Form to execute search and return all values to the user form for editing

    We need a sample workbook. Be sure to use bogus info.

    Also, if the search produces multiple matches
    Be sure to include the duplicate names you're talking about.
    David
    (*) Reputation points appreciated.

  3. #3
    Registered User
    Join Date
    04-20-2013
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: User Form to execute search and return all values to the user form for editing

    I have attached a sample workbook as requested. The worksheet "Employee Info" containing the sample data will normally be hidden and users will work through the user form.

    Thanks
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-28-2012
    Location
    Pittsburgh, Pa
    MS-Off Ver
    Excel 2003 - 2007 -2010
    Posts
    49

    Re: User Form to execute search and return all values to the user form for editing

    allwrighty,

    Just out of curiosity, do you assign employee numbers to your employees.

    If you do, then that could be a column in sheet Employee Info and searching by Employee number you would get the correct employee and related info.

    cplmckenzie

  5. #5
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: User Form to execute search and return all values to the user form for editing

    OK, test this out.

    I changed the first/last textboxes to comboboxes.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-20-2013
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: User Form to execute search and return all values to the user form for editing

    David,

    Thank you. That is what I was looking for. This Forum is fantastic!!

    Tom

+ Reply to Thread

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