Excel Multicolumn Listboxes. How to manually add additional data before data is inserted

I populate a multicolumn listbox with data from an array.
However, I would like to add one or two additional values manually before the array is populated that will appear at the top.

This is how I populate the listbox

With Me.lstContracts
.ColumnCount = 4
.ColumnWidths = "40,150;100,100"

    If arrContracts(x, colRecyclingContractCustomerID) = CustomerID Then
            .List(.ListCount - 1, 0) = arrContracts(x, 1)
            .List(.ListCount - 1, 1) = arrContracts(x, colRecyclingContractSubscriptionName)
            .List(.ListCount - 1, 2) = arrContracts(x, colRecyclingContractFirstPickup)
            .List(.ListCount - 1, 3) = arrContracts(x, colRecyclingContractLastPickup)
    End If

End With
Next x

Open in new window

I understand that .addItem has an optional parameter that would allow me to specify the index but it looks like this only works in single column listboxes - not in multi like mine.
I would like to add a value 0 and/or 1

Any ideas how to solve this?

Massimo ScolaInternshipAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NorieAnalyst Assistant Commented:
It should work in a multi-column listbox.

Here I've added a row at the top and filled it with some arbitrary values.
    With Me.lstContracts
        .ColumnCount = 4
        .ColumnWidths = "40;150;100;100"
        ' code to populate listbox from array

        ' add row at top and populate it
        .AddItem , 0
        .List(0, 0) = "TopRowCol1"
        .List(0, 1) = "TopRowCol2"
        .List(0, 2) = "TopRowCol3"
        .List(0, 3) = "TopRowCol4"
    End With

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Massimo ScolaInternshipAuthor Commented:
Oh that's great - I can even add two values to it before I add data from an array to the listbox. Thanks for your help!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Office

From novice to tech pro — start learning today.