You forgot a point (".") before the 'Count'.
So, instead of this:
do like following:Code:Private Sub Create_ListView_OCX() Dim nb As Long With ListView_OCX.ListItems If Count Then .Clear End If
Code:Private Sub Create_ListView_OCX() Dim nb As Long With ListView_OCX.ListItems If .Count Then .Clear End If






Reply With Quote