attached please find the sample workbook. as you can see in the sample i used a listbox to show the unique numbers, but that does not need to be.
regards On Friday, 9 August 2013 22:48:19 UTC+2, Ricardo Fourie wrote: > > good day > > i have a source sheet and a resultant sheet. i have a form with comboboxes > on which gets it data from the source sheet. > i have 3 dependant combobox on the form. combobox 1 is populated on > userform_initialize, combobox 2 is then populated by a unique list of > values based on combobox 1, combobox 3 is populated by a unique list of > values based on combobox 2. > i now need to load the unique list of resultant values from combobox 3 in > a dynamic range or array and print it to a sheet using a command button. > here are two conditions though, > 1. the columns in the resultant sheet is: A = District, B = Town, C = Name > and D = Number. each of the comboboxes represents a column. so i need to > print the unique numbers in column D to the resultant sheet, and > 2. it has to actually duplicate the unique values under each of the other > columns. > > so in the resultant sheet, once the process is completed and it is > printing say 4 unique numbers under column D, it has to duplicate from > column A (District) to column C(Name) those values that belongs to column > D(number). > the result would look like this after clicking the command button: > DISTRICTTOWNNAMENUMBERNORTHAJOHNA123NORTHAJOHNA786NORTHAJOHNB124NORTHAJOHN > B456 > -- Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups "MS EXCEL AND VBA MACROS" group. To unsubscribe from this group and stop receiving emails from it, send an email to excel-macros+unsubscr...@googlegroups.com. To post to this group, send email to excel-macros@googlegroups.com. Visit this group at http://groups.google.com/group/excel-macros. For more options, visit https://groups.google.com/groups/opt_out.
Book1.xlsm
Description: application/vnd.ms-excel.sheet.macroenabled.12