+ Reply to Thread
Results 1 to 14 of 14

Userform DropDown Filled based on Entry

  1. #1
    Registered User
    Join Date
    07-30-2021
    Location
    USA
    MS-Off Ver
    2016
    Posts
    8

    Unhappy Userform DropDown Filled based on Entry

    **SOLVED
    Answer in reply 12, Thank you again so much!!**



    materials userform.png

    Hi guys, new here.
    I've been figuring out excel and vba on my own for a minute but this has me completely stumped.
    I want it so that when I enter an value in the "AC#" text box and click the "show materials" button, it will load a list of up to 5 materials from a separate sheet via vlookup.
    I can't even get it to give me one item via this method let alone 5.

    Please Login or Register  to view this content.
    Is what i have tried most recently. I also tried one using Find but couldn't get it to work either.

    I've never posted to one of these so please correct me if there is anything that I am doing wrong.


    ** Worth noting that the pop up that scans for the value does work, if the value is not listed it will pop up. But if it is listed the error comes at the vlookup area **
    Attached Files Attached Files
    Last edited by JessCCG; 08-03-2021 at 05:36 PM. Reason: addtional information

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Userform DropDown Filled based on Entry

    Hi and welcome.

    If you can edit your first post to wrap the VBA in code tags then we can help. Forum rules and all that...

    Also, could you advise if the list of values you're looking up from in columns A:C on the List sheet is dynamic or of fixed length? If the latter then what rows does it cover?

    BSB

  3. #3
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,302

    Re: Userform DropDown Filled based on Entry

    always easier for us to give a solution if you post your actual workbook.
    see big yellow banner.
    all i can say at the moment is your code is not gong to do what you describe, then you already know that !
    Torachan,

    Mission statement; Promote the use of Tables, Outlaw the use of 'merged cells' and 'RowSource'.

  4. #4
    Registered User
    Join Date
    07-30-2021
    Location
    USA
    MS-Off Ver
    2016
    Posts
    8

    Re: Userform DropDown Filled based on Entry

    Its in Tabel1 on the Sheet "List" The button for the Userform is on "Map"
    Attachment 742775

    Its dynamic and pulls the data form another source.

  5. #5
    Registered User
    Join Date
    07-30-2021
    Location
    USA
    MS-Off Ver
    2016
    Posts
    8

    Re: Userform DropDown Filled based on Entry

    Quote Originally Posted by torachan View Post
    always easier for us to give a solution if you post your actual workbook.
    see big yellow banner.
    all i can say at the moment is your code is not gong to do what you describe, then you already know that !
    I would love to post it, I completely agree it is far easier to figure out an issue with the whole picture. If no one can figure it out with out that I will work on making a mock sheet with just the this issue but I can not upload the full file.

  6. #6
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Userform DropDown Filled based on Entry

    Difficult to know for sure without the sample workbook, but give this a try and see if it does what you need.

    Please Login or Register  to view this content.
    BSB
    Last edited by BadlySpelledBuoy; 08-03-2021 at 05:31 PM.

  7. #7
    Registered User
    Join Date
    07-30-2021
    Location
    USA
    MS-Off Ver
    2016
    Posts
    8

    Re: Userform DropDown Filled based on Entry

    That got a 'Compile Error Invalid Next control' whether something on the list or not was entered. I did make a mock version with enough data removed that I can post it if I can figure out how.

  8. #8
    Registered User
    Join Date
    07-30-2021
    Location
    USA
    MS-Off Ver
    2016
    Posts
    8

    Re: Userform DropDown Filled based on Entry

    Ah! I added the mock version to the original post

  9. #9
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Userform DropDown Filled based on Entry

    So if you enter 12345 in the AC# field, what values should appear in the PN# drop down?

    BSB

  10. #10
    Registered User
    Join Date
    07-30-2021
    Location
    USA
    MS-Off Ver
    2016
    Posts
    8

    Re: Userform DropDown Filled based on Entry

    Each value from column C to G if its possible.

  11. #11
    Registered User
    Join Date
    07-30-2021
    Location
    USA
    MS-Off Ver
    2016
    Posts
    8

    Re: Userform DropDown Filled based on Entry

    The original formulas that pull information to these columns denote it remaining blank if what it pulls from is 0. I don't mind it being 2 lines of text and 3 lines that are blank after if it makes it work.

  12. #12
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Userform DropDown Filled based on Entry

    Try this:
    Please Login or Register  to view this content.
    BSB
    Last edited by BadlySpelledBuoy; 08-03-2021 at 05:39 PM.

  13. #13
    Registered User
    Join Date
    07-30-2021
    Location
    USA
    MS-Off Ver
    2016
    Posts
    8

    Re: Userform DropDown Filled based on Entry

    OMG BRILLIANT!!!! Thank you so much. I have been racking my brain since last week. I know you guys could see all the old attempts I saved in their trying to figure it out. It works perfect. GENUIS.

  14. #14
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Userform DropDown Filled based on Entry

    Happy I could help

    Thanks for the feedback

    BSB

+ 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. Need help making a dropdown reference a table based on a previous entry
    By cange39 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-18-2019, 07:49 AM
  2. [SOLVED] Populate dropdown menu in userform based off cell value
    By Jamesraywebber85 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-15-2018, 10:10 AM
  3. [SOLVED] Auto data entry based on dropdown choices
    By dkatorza in forum Excel General
    Replies: 3
    Last Post: 08-03-2014, 10:20 AM
  4. Populating userform based on 3 dropdown variables
    By k06 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-06-2012, 04:52 PM
  5. Replies: 1
    Last Post: 06-21-2011, 11:46 AM
  6. Replies: 3
    Last Post: 02-24-2011, 01:48 AM
  7. Give Choices based upon Userform Entry
    By 00Able in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-29-2011, 06:52 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