Collections Class For Each Next

I have created class modules in my Excel VBA project that each include a private collection object. I am trying to leverage the "house of bricks" model whereby the class will only add and return an instance of a specific object. My problem is that from the code module that creates the instance of the collection class I cannot use For Each...Next iteration to step through the collection. In VB6, I've used NewEnum to return an IUnknown after setting Procedure Attributes and ID. In VBA I get error 438: Object doesn't support this property or method. Is there any way to enable For Each...Next in VBA or am I going to be stuck stepping through the collection old-school Thanks!

Answer this question

Collections Class For Each Next