For example, I can't get the type of the elements in the array. In the following example, the last "Type" method doesn't work.
Code: Select all
For i = 1 To swSelMgr.GetSelectedObjectCount2(-1)
Debug.Print "i: " & i & " Type:" & swSelMgr.GetSelectedObjectType3(i, -1)
ReDim Preserve SelSetCopy(i)
Set SelSetCopy(i) = swSelMgr.GetSelectedObject5(i)
Next i
For i = 1 To UBound(SelSetCopy)
Debug.Print "i: " & i & " Type:" & SelSetCopy(i).Type
Next i