likexl
New Member
- Joined
- May 7, 2011
- Messages
- 18
Hi,
I am trying to code 7 multi column in listbox, but trapped.
code :
Do Until NumCounta = 1
NumCounta = NumCounta - 1
a = Range("a" & x).Value
b = Range("d" & x).Value
c = Range("e" & x).Value
d = Range("f" & x).Value
e = Range("h" & x).Value
f = Range("i" & x).Value
g = Range("j" & x).Value
x = x + 1
'this gives records in different row.
'want all in one row and aligned.
Me.ListBox1.AddItem a
Me.ListBox1.AddItem e
Me.ListBox1.AddItem f
Me.ListBox1.AddItem g
Me.ListBox1.AddItem b
Me.ListBox1.AddItem c
Me.ListBox1.AddItem d
Loop
using xl 2003, win7
thanks.
I am trying to code 7 multi column in listbox, but trapped.
code :
Do Until NumCounta = 1
NumCounta = NumCounta - 1
a = Range("a" & x).Value
b = Range("d" & x).Value
c = Range("e" & x).Value
d = Range("f" & x).Value
e = Range("h" & x).Value
f = Range("i" & x).Value
g = Range("j" & x).Value
x = x + 1
'this gives records in different row.
'want all in one row and aligned.
Me.ListBox1.AddItem a
Me.ListBox1.AddItem e
Me.ListBox1.AddItem f
Me.ListBox1.AddItem g
Me.ListBox1.AddItem b
Me.ListBox1.AddItem c
Me.ListBox1.AddItem d
Loop
using xl 2003, win7
thanks.