I'm getting an error here
Google tells me a listview does have a column count property, but I can't find it. Perhaps only in Excel (or VB) ?
If I rem that out, the listview shows 4 columns and a horizontal scrollbar. I only want one column.
Thanks for any help.
Code:
Function ListviewSelect(dat)
Dim li As ListItem, x As Integer
With Me.ListView0
.HideColumnHeaders = True
.View = lvwReport
.GridLines = True
.ListItems.Clear
.ColumnHeaders.Add , , , 5000
.ColumnCount = 1 <<<<<<<<<<<<<<<<Error
.Checkboxes = True
.FullRowSelect = True
For x = 0 To UBound(dat)
Set li = .ListItems.Add(, , dat(x))
Next
End With
End Function
If I rem that out, the listview shows 4 columns and a horizontal scrollbar. I only want one column.
Thanks for any help.
Last edited: