+ Reply to Thread
Results 1 to 7 of 7

Give Choices based upon Userform Entry

  1. #1
    Forum Contributor 00Able's Avatar
    Join Date
    11-17-2010
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    244

    Exclamation Give Choices based upon Userform Entry

    In my workbook, I have a "LookUpLists" sheet that has all kinds of data relating to different fields in the userform, (most of which are dynamically named to go into the userform). What I am curious about is this:
    The user must input a SKU # and a Storage # in the userform (located on the front page) I would like the userform to be a little smarter and give the user an option based upon what SKU is put in, so in my example you can see that SKU 12032, has 2 Storage #'s;N34-33-A, and N51-33-A, this is based upon information in the "LookUpLists" sheet column S "StorageList" is its dynamic named range, (column T "SKU (Storage #)" is directly related to Column S the "Storage #".

    Hopefully that explains well enough, so is it possible for a userform, to have a pop-up, or another option after you put in a SKU, asking which storage location it came from?

    If it is and you don't know how to do it, please let me know, if you know it is not please tell me that to, any feedback is appreciated.
    Last edited by 00Able; 01-29-2011 at 06:53 PM.
    Providing Problems for Your Solutions
    STARS are my Punching Bag, You will be rewarded.

    In the rare event that I may help you, feel free to make me see STARS

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Give Choices based upon Userform Entry

    You could populate cboStorage with code run as part of the cboSKU_Change event which appears to be currently unused.
    Martin

  3. #3
    Forum Contributor 00Able's Avatar
    Join Date
    11-17-2010
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    244

    Re: Give Choices based upon Userform Entry

    I dont understand, can you provide any other information, referencing, research that I can do?

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Give Choices based upon Userform Entry

    Hi 00Able

    If I understand your issue, try this approach (see attached).
    Attached Files Attached Files
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  5. #5
    Forum Contributor 00Able's Avatar
    Join Date
    11-17-2010
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    244

    Re: Give Choices based upon Userform Entry

    That approach will work, it appears to be somewhat "volatile" for a lack of a better word. I do not understand the code, so I am not sure how to disect it.
    I keep getting a code error "run time error 1004, no cells found"after I hit submit, when I debug it this is highlighted
    Please Login or Register  to view this content.
    Also, when I initially pick a SKU, it returns the Column name "Storage #",no matter what, so I have to go back up and click the sku field and re-enter the data

    so I am not sure?

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Give Choices based upon Userform Entry

    Hi 00Able

    Sorry 'bout that...I didn't test the "Submit" button. Basically, what needed to be done is to set "Events" off. Application.EnableEvents doesn't work in UserForms. So, you'll see I added "Flag" as Boolean to the code. When "Flag" is set to false, the new code I gave you won't run.

    See if it works for you; let me know what you don't understand...be glad to explain if I can.
    Attached Files Attached Files

  7. #7
    Forum Contributor 00Able's Avatar
    Join Date
    11-17-2010
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    244

    Re: Give Choices based upon Userform Entry

    I have it configured into a working scenerio and it appears to be working seamlessly. This is a great help.
    Thanks, once again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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