title: Access ID of object in collection of objects (VBA)
body: <p>I have created a Collection of objects in VBA and each object has a unique ID. I understand I can access the 'items' in a collection which is an inbuilt function of VBA. Is there a way I can access the object's id? (i'm not sure how to set up the loop..</p>
  
  <p>Currently I am doing something like:</p>
  
  <pre><code>For each objectName in CollectionName
  
  objectName.Item(index)
  
  Next objectName
  </code></pre>
  
  <p>This is correct syntax for accessing the collection's Item, but I am unable to delve into the collection to get the object's/item's ID...is this possible?</p>
  
  <p>fyi, the object's id is set up as mID and is an integer.</p>