Looking for vba Code that allows the user to select an item from a comboBox that populates a listbox with three columns.
Please Login or Register to view this content.
Looking for vba Code that allows the user to select an item from a comboBox that populates a listbox with three columns.
Please Login or Register to view this content.
You need to provide more information about what 3 bits of data are needed in listbox.
This code will use the selected row to fill 3 items.Please Login or Register to view this content.
If you are trying to populate the listbox with all matching records based on year then you will need to loop through the records and test year.
Andy,
I understand I should have clarified that based on the "Year" selected I would like the list box to display columns "C", "E", and "O".
thanks
So you just need to alter the Offset positions in the example provided
Andy,
I notice when I select a year from the drop down, in the list box the header is below the item did I miss something else?
This how is looks
ENC Test.png
The additem method create a new line within the listbox. The .List() property allows you to fill the specified column of an existing line.
I think you need to change the 2 additems to List
I notice the add items fill the first column. I'm work on that this afternoon
thanks
Andy I modified the code which looks correct need a little help connecting the drop down box to the list box. I added an additional worksheet called reports
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks