请问如何取唯一
我想最后 myColl 中的数据不重复,如下代码会出现错误号:457
我不知如何修改才能达到要求,请求帮助,谢谢!
Private Sub Form_Load()
Dim myFile, i&, myColl As New Collection
On Error Resume Next
myFile = Split("A,B,C,A,B,D", ",")
For i = 0 To UBound(myFile)
myColl.Add Item:=myFile(i), Key:=myFile(i)
Next i
End Sub