Unable to add user-defined data types to a collection
Hi James,
You are correct. You can also add simple data types to a collection. What
you can't add to a collection is a user-defined type.
Regards,
Peter Beach
"Jamie Collins" wrote in message
om...
"Peter Beach" wrote ...
You can only add objects to collections
That's not correct:
Sub test2()
Dim c As New Collection
Dim s As String
Set c = New Collection
s = "Text"
c.Add s
End Sub
Jamie.
--
|