On Oct 19, 1:13 pm, Arjan <A...@discussions.microsoft.com> wrote:
> Hi all,
>
> I am adding a range of data (4 coloms wide) from a worksheet to a listbox
> with a commandbutton.
> However, the data is 4 coloms wide. The data added is put below each other
> instead of besised each other..
>
> What can I do to make the data in the 4 coloumns?
Try this, which I just lifted from
http://www.chalouhis.com/XLBLOG/arch...olumn-listbox/
Const NumColumns = 3
Const NumRows = 10
Dim i As Integer, j As Integer
For i = 1 To NumRows
lstMyListBox.AddItem “Row” & i & “Column1″
For j = 1 To NumColumns - 1
lstMyListBox.List(i - 1, j) = “Row” & i & “Column”
& j
Next j
Next i
HTH,
Mike