Andy 胡

导航

VBA中的集合

Sub testSet()
    Dim c As New Collection
    c.Add ("A")
    c.Add (2)
    c.Add ("A")
    
    For i = 1 To c.count
        Debug.Print (c.Item(i))
    Next
End Sub

output:
A
2
A

posted on 2020-09-11 22:23  talkwah  阅读(801)  评论(0编辑  收藏  举报