Hi,
I am not getting any error in
but you can try
Me.cmb1.AddItem dic.Item(vKey)
or
Me.cmb1.AddItem CStr(vKey)
instead.
About the column headers: the only way to have column headers in a list box is to set a Range in the RowSource property -> you cannot use the existing table. The only solutions would be using a ListView, as I did at the beginning.. or use an additional invisible helpworksheet -> this will, depending on the amount of rows in your table, slow down the userform.
About the zeros: Replace
If dic.Item(vKey)(j) = vbNullString Then
aListBoxList(i, j) = 0
Else
aListBoxList(i, j) = dic.Item(vKey)(j)
End If
with
aListBoxList(i, j) = dic.Item(vKey)(j)
Regards
Bookmarks