Hi All
I am trying to write some vba code for my user form, yet I keep on getting stuck. Any help would be very useful and greatly appreciated.
In my worksheet [worksheet1] I have a table [table1] with three columns. col1 = unique reference number. col2 = book name. col3 = book author.
In a user form I have two list boxes. list box 1 already contains two columns: LB1 col1 is a range of reference numbers retrieved from my table col1, and in LB1 col2, I have the matching book names.
I need a code that would loop through all rows in LB1 and populate LB2 with two separate columns. LB2 col1 should contain all the the reference numbers contained in LB1 col1 - in the same order [resulting in both list boxes containing an identical col1]. The second column of LB2, should then be populated with all of the matching book artist, as retrieved from the Table in column 3.
I hope I've explained myself clearly enough.
Thank you so much in advance for any help offered.
I am trying to write some vba code for my user form, yet I keep on getting stuck. Any help would be very useful and greatly appreciated.
In my worksheet [worksheet1] I have a table [table1] with three columns. col1 = unique reference number. col2 = book name. col3 = book author.
In a user form I have two list boxes. list box 1 already contains two columns: LB1 col1 is a range of reference numbers retrieved from my table col1, and in LB1 col2, I have the matching book names.
I need a code that would loop through all rows in LB1 and populate LB2 with two separate columns. LB2 col1 should contain all the the reference numbers contained in LB1 col1 - in the same order [resulting in both list boxes containing an identical col1]. The second column of LB2, should then be populated with all of the matching book artist, as retrieved from the Table in column 3.
I hope I've explained myself clearly enough.
Thank you so much in advance for any help offered.