updating listbox.cell with heading name and text in first column

Hi,

I have listbox like this:

          21n    22o    23p    24q    25r    26s    27t
abc
efg
hij
klm

How can I update cell in listbox when I have arrays like:
“22o”, “efg”, “25%”
“24q”, “klm”, “13%”
So I have x and y coordinates and value as string, but not index of cell.
And it’s weblistbox.

Thanks

Jukka

Ok, I reply to myself :slight_smile:

I made two function to loop rows and cols to get index:

[code]Function lb3col(cname As String) As Integer
for i as integer = 0 To listbox3.ColumnCount - 1
if cname = ListBox3.Heading(i) Then
Return i
end if
next i
End Function

Function lb3row(rname As String) As Integer
for i as integer = 0 To listbox3.RowCount - 1
if rname = ListBox3.List(i) Then
Return i
end if
next i
End Function[/code]

Is this only way?