I am looking to store instantiated class module objects into an array. This seems as if it should be simple but I have had no luck.
So if I had a class module called classPerson:
In the macro:
This and variations of this without the Set either do not compile or crash. How is this type of thing handled in VBA?
Thanks
So if I had a class module called classPerson:
Code:
Public name As String
Public age As Integer
In the macro:
Code:
Dim person As classPerson
Set person = New classPerson
person.name = personsname
person.age = 10
'store the person into an array
Dim personArray(1 To 10) As classPerson
Set personArray = New classPerson
personArray(1) = personArray
This and variations of this without the Set either do not compile or crash. How is this type of thing handled in VBA?
Thanks