VBA: Storing User Defined Types in A List

Miscellaneous Forums/General Discussion/VBA: Storing User Defined Types in A List

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I'm also not a vba guy but you SHOULD be able to do what he said...

Type Blah
  ID as integer
  Name as string
End Type

Dim Blahs as new Collection
Dim tblah as new blah

for t = 1 to 5
  tblah.id = t
  tblah.name = cstr(t) & "Name"

  Blahs.Add tblah
next


That's off the absolute top of my head, but I think that should give an idea anyway.