Hello Dear Excel Forum
Is it possible to iterate over Type?
I have following method of looping doesn't work:
Here is a method for iterating over Enum.![]()
Public imtype As mtype Public Type mtype() Item1 As Long Item2 As Long Item3 AS Long End Type Sub howtoiter() Dim el As Variant With imtype Item1 =1 Item2 =2 Item3 =3 End With For each el in imtype do something with el Next el End Sub
https://msdn.microsoft.com/en-us/library/58hssdz9.aspx
Bookmarks