+ Reply to Thread
Results 1 to 6 of 6

Adding new search box criteria to a user form (new to excel vba )

  1. #1
    Registered User
    Join Date
    10-24-2018
    Location
    sunderland
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2404 Build 16.0.17531.20152) 64-bit
    Posts
    72

    Adding new search box criteria to a user form (new to excel vba )

    hi all

    I was looking for some help, I have a training tracker that I have made following the instruction on a web site, the issue am having is that I can only search for last names, on the user form. I would like to be able to search by first or last name. would I need to add another text box or would I be able to just use the same box that is set up on the user form for searching the last names of the employee.

    I would also like to be able to search by training courses as well but I may have followed the instruction for something that is well above me at the moment and I just get lost in all the codes practice makes perfect

    any help would be much appreciated

    I hope I have attached the file correctly
    Attached Files Attached Files
    Last edited by sharky1978; 10-25-2018 at 06:39 AM.

  2. #2
    Valued Forum Contributor dotchiejack's Avatar
    Join Date
    05-21-2015
    Location
    Antwerp,Belgium
    MS-Off Ver
    2016
    Posts
    507

    Re: Adding new search box criteria to a user form (new to excel vba )

    Hi Sharky,
    Welcome to the forum.
    I reworked your whole form.
    You can search on first name, last name and training.
    Have a look at it,try it out.
    If you have questions, just ask.
    Attached Files Attached Files
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    10-24-2018
    Location
    sunderland
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2404 Build 16.0.17531.20152) 64-bit
    Posts
    72

    Re: Adding new search box criteria to a user form (new to excel vba )

    thanks dotchiejack

    looks great, a few question for you

    when I add new training it will assign a new number but if I double click on the name and change the training it will duplicate the id number, I cant seem to find why it is doing this

    also can I add a search criteria that will show over due or due within dates for the whole data base, can I use the old code from my first user form and add it to the one you have modified, im new to vba so basic instructions may be helpful

    but thanks again for the help

  4. #4
    Valued Forum Contributor dotchiejack's Avatar
    Join Date
    05-21-2015
    Location
    Antwerp,Belgium
    MS-Off Ver
    2016
    Posts
    507

    Re: Adding new search box criteria to a user form (new to excel vba )

    Version number 2
    I made a few changes.
    Now you can assign a new training to an exsisting employee, a new number will be assigned.
    I also added Due date to the search criteria.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-24-2018
    Location
    sunderland
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2404 Build 16.0.17531.20152) 64-bit
    Posts
    72

    Re: Adding new search box criteria to a user form (new to excel vba )

    thanks for the help,

    i know its a bit cheeky but is there a way to put a button that i can press and it will just bring up overdue training ive been trying but i keep getting error messages. i have taken all the code and macros i tried to use and just added a couple of buttons so you can hopefully see what i mean with overdue and due with in

    and the same for due in which i can select how many days as the search criteria and it only brings up the the training due in that amount of days.

    again thanks for your help

    you made this look easy, i think i may try starting with basics instead of something this big

  6. #6
    Registered User
    Join Date
    10-24-2018
    Location
    sunderland
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2404 Build 16.0.17531.20152) 64-bit
    Posts
    72

    Re: Adding new search box criteria to a user form (new to excel vba )

    hi all
    I am having trouble adding a couple of search criteria's to my training tracker, I am trying to add a search criteria for working out who's training is out of date or is due within so many days, I have added the search boxes but I keep getting an error message in the code,

    I think the problem is the helpful guy that done all the work for me has different code and names for the cmd boxes to the original code and names I had copyed/learned to do from a web site and I have no idea where to go

    I have not attached another file as the new one I have messed up and it doesn't work any more but the copy above in the thread was the one I cant get to work

    could any one help me put the code in or point me in the right direction

    thanks

+ 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. popped a warning message to before adding the data into excel sheet from user form
    By limhuihui in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-03-2018, 10:19 PM
  2. Create User form to perform search using multiple search criteria
    By cherias in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-29-2015, 06:16 AM
  3. Help With Search via Excel User Form
    By Smurlos in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-13-2015, 03:09 PM
  4. [SOLVED] User Form to execute search and return all values to the user form for editing
    By allwrighty in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-11-2013, 10:40 PM
  5. [SOLVED] Restricting the user form to adding to excel sheet
    By shiftyspina in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-24-2013, 07:41 AM
  6. Replies: 4
    Last Post: 03-21-2013, 10:02 AM
  7. User Form to Search multiple Criteria to return multiple Results
    By Calieth in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-16-2011, 11:57 AM

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