+ Reply to Thread
Results 1 to 5 of 5

How to: Fill combobox inlcuding IF statement

  1. #1
    Registered User
    Join Date
    07-21-2014
    Location
    Netherlands
    MS-Off Ver
    2010
    Posts
    7

    Cool How to: Fill combobox inlcuding IF statement

    Hello Guys,

    I have a question about filling a combobox. I would like to add values from collum B to the combobox. On the condition that the requirement will met the values of collum A.
    For example: requirement = Beer
    Collum A | Colum B
    Beer | Heineken
    Wine | BLOSSOM HILL
    Beer | Corona
    Wisky | Black label
    The combobox should be filled with Heineken & Corona.

    On the internet i couldn't find an example/macro, could you guys help me?!!

    Kind regards,
    Blue
    combobox.xlsm
    Last edited by bluestarrr; 07-23-2014 at 06:12 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,618

    Re: How to: Fill combobox inlcuding IF statement

    To attach a Workbook
    (please do not post pictures of worksheets)
    • Click Advanced (next to quick post),
    • Scroll down until you see "Manage Attachments",
    • Click that then select "add files" (top right corner).
    • Click "Select Files" find your file, click "open" click "upload"
    • Once the upload is completed the file name will appear below the input boxes in this window.
    • Click "Done" at bottom right to close the Attachment Manager.
    • Click "Submit Reply"
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    07-21-2014
    Location
    Netherlands
    MS-Off Ver
    2010
    Posts
    7

    Re: How to: Fill combobox inlcuding IF statement

    Thanks for the tip Protonleah
    Last edited by bluestarrr; 07-23-2014 at 06:12 PM.

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,618

    Re: How to: Fill combobox inlcuding IF statement

    Try this one for a start:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-21-2014
    Location
    Netherlands
    MS-Off Ver
    2010
    Posts
    7

    Re: How to: Fill combobox inlcuding IF statement

    Thanks Protonleah that is what i needed!!!

    PS. For the people who are interested I have adjusted the code a little bit. So it will only activated
    while a specific cell value changes and it clears now first the combobox so it won’t fill up with old data
    Please Login or Register  to view this content.

+ 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. Why Form Combobox VBA do not fill the combobox? Please help!
    By alex_shin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-16-2013, 03:03 AM
  2. [SOLVED] VBA Userform ComboBox: Content of ComboBox based off of Conditional Statement
    By Brianandstewie in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-16-2013, 03:00 PM
  3. [SOLVED] Can't get combobox to properly fill data based on another combobox.
    By Orestees in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-15-2012, 05:22 PM
  4. Replies: 4
    Last Post: 10-10-2012, 03:38 PM
  5. IF statement based on CELL fill or no fill
    By OliB in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-27-2012, 05:12 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