AddItem method only allow up to 9 columns as far as I remember.
You will need to create an array for the list/column property of ListBox.
e.g
Public Sub PopulateList()
'
' Adds items to the list from the worksheet
'
Dim arrList As Variant
Dim lngLastRow As Long
Dim lngItem As Integer
Dim lngItems As Integer
Dim myList() As String
ListBox1.Clear
ListBox1.ColumnCount = 20
lngItems = 0
lngLastRow = Sheet1.Columns(6).Find(What:="*", After:=[F1], _
SearchOrder:=xlByRows, SearchDirection:=xlPrevious, _
LookAt:=xlPart, LookIn:=xlValues).Row
arrList = Sheet1.Cells(3, 1).Resize(lngLastRow - 2, 27)
ReDim myList(1 To 20, 1 To lngLastRow)
For lngItem = LBound(arrList) To UBound(arrList)
If CStr(arrList(lngItem, 6)) = Me.TextBox1.Value _
And arrList(lngItem, 12) = Me.ComboBox1 Then
lngItems = lngItems + 1
For i = 2 To 20
myList(i - 1, lngItems) = arrList(lngItem, i)
Next
End If
Next
If lngItems > 0 Then
ReDim Preserve myList(1 To 20, 1 To lngItems)
Me.ListBox1.Column = myList
End If
ActiveWorkbook.Save
End Sub
Bookmarks