+ Reply to Thread
Results 1 to 5 of 5

UserForm Search - Find the product when typing the ID

  1. #1
    Registered User
    Join Date
    08-14-2017
    Location
    MX
    MS-Off Ver
    2011 Mac Excel Ver 14.6.6
    Posts
    18

    UserForm Search - Find the product when typing the ID

    Hi,

    I'm trying to build a User Form that when I type the Product ID (Value in Column L) and click "Go", the macro will return the values and fill my boxes.

    Captura de pantalla 2017-08-15 a la(s) 10.45.25 PM.png

    I have the values in the Spreadsheet. Each characteristic is in a separate Cell:
    Captura de pantalla 2017-08-15 a la(s) 10.47.49 PM.png

    Any help is highly appreciated.

    Regards,
    Attached Files Attached Files

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: UserForm Search - Find the product when typing the ID

    Since you are populating only a single record on UserFom, I guess you need ComboBox instead of TextBox.
    In ComboBox, you can select existing IDs from column L to populate the relevant records on the Form Controls.
    I have inserted a ComboBox on the UserForm, see if that works for you otherwise you can delete it.
    There is a code underneath the Go button so that when you type and ID in TextBox and click the Go button, all the controls will be filled with the relevant information.

    Remove the existing codes from the UserForm Module and place the following codes in there.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    08-14-2017
    Location
    MX
    MS-Off Ver
    2011 Mac Excel Ver 14.6.6
    Posts
    18

    Re: UserForm Search - Find the product when typing the ID

    That's pure art! Exactly what I need. The ComboBox is actually a very good option, but as I will be having over 4000 ID's of products I will sometimes need to just enter the code and have the characteristics appear. Many thanks for that.

    Just one question, if the ID is only numbers, the information won't show. Is there a way for macro to accept only numbers, numbers and text or text as my ID?

    Second question, in my file I have 2 companies (and I will have a third one) which I would like to compare and find matching products in order to compare prices. Company 1 products are my base to compare (or by just typing certain characteristics I want directly into the UserForm. How hard would it be that if I click on "Search" the Macro will find those characteristics in Company 1 products (B7:M30) Company 2 products (B33:O100) and Company 3 (B102:Q"x") and show the results in a separate worksheet?

    Will it also work that if I only type into the UserForm lets say, 120 in Voltage TextBox and 60 in Wattage TextBox as my values and click search, I will have in the next sheet all products that contain those values?

    I hope I'm explaining myself correctly.

    Thanks again.
    Last edited by DanPa; 08-16-2017 at 01:40 AM.

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: UserForm Search - Find the product when typing the ID

    Well it looks like a project instead of just a question and honestly I don't have that much of time to address all those points as I am busy in my project.
    So what I would suggest you that you rephrase your question systematically and open a new thread and provide the relevant sample data and code you are currently working with so that other experts would be able to help you to resolve all the issues you are having.

    But since I answered your original question so before opening a new thread, don't forget to mark this thread as Solved.

  5. #5
    Registered User
    Join Date
    08-14-2017
    Location
    MX
    MS-Off Ver
    2011 Mac Excel Ver 14.6.6
    Posts
    18

    Re: UserForm Search - Find the product when typing the ID

    Sure thing, before posting again I'm trying new options and I'll come back when stuck again.

    Thank you very much for your replies.

+ 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. Replies: 0
    Last Post: 02-07-2016, 07:47 AM
  2. Replies: 5
    Last Post: 10-23-2015, 12:35 PM
  3. Userform search from sheet and find criteria and sum
    By konficus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-04-2015, 10:02 AM
  4. [SOLVED] Find Product Details in Another Sheet based on Product ID and Copy some Fields From there
    By kevalkothari in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-29-2012, 10:43 AM
  5. [SOLVED] Need Function that will find ordered product, and display the product code in a 2nd workbk
    By rollerden in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-21-2012, 08:52 AM
  6. Userform Search, Find and Edit Data
    By Chris270 in forum Excel Programming / VBA / Macros
    Replies: 42
    Last Post: 08-24-2011, 05:36 PM
  7. Create a find/ search field w/ userform?
    By mitelkm in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-17-2008, 11:52 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