I am trying to create my first object model to use in
Excel. I have created a unit object that belongs to a
unit’s collection. I can set and retrieve properties
to the objects in the collection just fine.
However, I want to have a GenValues value property
that contains 25 values stored in the object. These
values will come from a range in a spreadsheet. As a
result, I will either have to store the values in an
array or use two collections. The following would be
the output from the object
Units.item(1).Name Jack
Units.item(1).Status U
Units.item(1).GenValues.(1).Value 5
Units.item(1).GenValues.(2).Value 10
Units.item(1).GenValues.(25).Value 150
So far I have not been able to get an object with
nested connections to work correctly. In addition, I
have not been able to get an array to work correctly
inside an object.