*************小弟在处理LISTBOX中的数据时,写了如下代码以删除其中重复的数据,但始终不好使,为什么?*************来者有分!!!!!!!
小弟在处理LISTBOX中的数据时,写了如下代码以删除其中重复的数据,但始终不好使,为什么?
哪位大侠帮我看看是哪错了?或给我一个新的方法! 先谢了!
With List3
If .ListCount > 1 Then
i = 0
While i < .ListCount
j = 0
While j < .ListCount And i <> j
If .List(i) = .List(j) Then
.RemoveItem j
End If
j = j + 1
Wend
i = i + 1
Wend
End If
End With