All,
I am having a problem getting the unique values from a pivot table in combobox (cbMU) based on list chosen from combobox 1 (cbTOG)
right now the codes work for populating both comboxes but the 2nd combobox fills with all the values for MU instead of the unique ones associated to the list in cbTOG
For example:
cbTOG has values like 69, 70, 100, 111, 112, 312, 631, 812, 900 and so one
cbMU has values like 100, 118, 124, 615, 812, 312, and so one
If I chose under cbTOG the value 69, then cbMU should have 615.
If I chose under cbTOG the value 113, then cbMU should show 111, 113, 131
code that fills the combobox 1 aka cbTOG:
the userform initialize fills cbTOG correctly![]()
Please Login or Register to view this content.
the cbTOG_change populates with the MU numbers but when I choose one of the TOG numbers the MU numbers do not change,![]()
Please Login or Register to view this content.
I don't receive an error either so the code populates both but the cbMU needs to populate with results like what i referred to in the values example.
I have a photo of what is in the pivot table for reference. can anyone tell me what I am missing in my code?
I know I may have to supply the workbook but that may take a bit for me to slim it down to what I can divulge since it has company data that I cannot share so if asked I will try and supply a working sample but I will also haev to remove many pieces of code that are used in multiple sheets already.
If it helps; the pivot table pulls data from the same sheet called 'combined' and the TOG values are in column H and the MU values are in column I
Bookmarks