okay so I am trying to use a property bag's write property to write a collection into a file.

But when I execute the code it says that my collection class doesn't support persistance....

below is my code. well not my code but my adaptation of code given to me. inpart by jim mcnamara and the rest from the MSDN



process control is declared a collection.

Dim varTemp As Variant

' Instantiate the PropertyBag object.
Set pb = New PropertyBag
' Save the object to the PropertyBag using WriteProperty.
pb.WriteProperty "collection", processControl
' Assign the Contents of the PropertyBag to a Variant.
varTemp = pb.Contents
' Save to a text file.
Open "C:\Process1.dat" For Binary As #1
Put #1, , varTemp
Close #1



any help would be appreciated.