SERIOUSLY I FREAKIN LOVE YOU!!

YOU ARE A VERY NICE PERSON!!!!
I just want to say thank you again!
I have inputed the changes, and the computer is longer yelling at me with errors telling me how wrong I am (Thanks to you), but the names are still not showing up in the list box? Am I the absolute worst person at VBA or what?
here is the code I have so far:
Private Sub ListBox1_Click()
'Variable declaration for number of vendors
Dim i As Integer
Dim intRowCount As Integer
Dim strVendor(30) As String
Dim intVendor As Integer
'Assignment of Summary worksheet values to variables
strVendor(i) = Range("a10")
'Go to inventory worksheet
Worksheets("Inventory").Select
'Count number of rows (this involves several steps)
'Select cell a1
Worksheets("Inventory").Range("a1").Select
'Select the current region that contains the cell a1
ActiveCell.CurrentRegion.Select
'Count the rows that you selected
intRowCount = Selection.Rows.Count
Worksheets("summary").Select
'LOOP (using FOR…NEXT syntax) from 2 to the number of rows
'To begin at start of array
For i = 2 To intRowCount
'check for vendor names
If Worksheets("Inventory").Range("H" & i).Value <> strVendor(intVendor) Then
intVendor = intVendor + 1
'Modified next line to assign value into the array
strVendor(intVendor) = Worksheets("Inventory").Range("H" & i).Value
End If
Next i
For i = 0 To intVendor
Worksheets("Summary").ListBox1.AddItem strVendor(i)
Next i
End Sub
This post has been edited by asugrl08: 26 Nov, 2006 - 08:37 PM