I created a form in VBA where I dynamically add ListBoxes.
How do I change the width and height of the ListBox? All other things are being changed.
Dim lb As MSForms.ListBox
Set lb = Me.controls.add("Forms.Listbox.1")
With lb
.ColumnCount = 4
.Left = 180
.Top = 16
.MultiSelect = 1
.Height = 270
.Width = 665
End with
I noticed Height and Width aren't in the property list of the ListBox. Could it be that I use the wrong ListBox type?
When I go through the code line by line, the ListBox size is as I want it.