Hi all,
i have 2 listboxes both have 3 columns. i want to pass selected list1 values to list2.
the problem i'm having is that when i click the button to pass the values over they get added as rows instead of columns. so, if i selected row one from list1 which has 3 cols i would expect the 3 columns to appear on one row of list2. for some reason it pastes? col1 on row1 then col2 on row2 and col3 on row3.
here's what i've got.....
list2 is set to value list and when i look at the rowsource i see this...
value1;;;value2;;;value3
it looks like i need to build in the semi colons somewhere??
can anyone help, thanks
i have 2 listboxes both have 3 columns. i want to pass selected list1 values to list2.
the problem i'm having is that when i click the button to pass the values over they get added as rows instead of columns. so, if i selected row one from list1 which has 3 cols i would expect the 3 columns to appear on one row of list2. for some reason it pastes? col1 on row1 then col2 on row2 and col3 on row3.
here's what i've got.....
Code:
For Each varitm In list1.ItemsSelected
For iLoop = 0 To list1.ColumnCount - 1
colVal = list1.Column(iLoop, varitm)
Me.list2.AddItem (colVal)
Next iLoop
Next varitm
list2 is set to value list and when i look at the rowsource i see this...
value1;;;value2;;;value3
it looks like i need to build in the semi colons somewhere??
can anyone help, thanks