#target illustrator
var doc = app.activeDocument;
alert( doc.pathItems.length ); // All document paths
alert( doc.groupItems[0].pathItems.length ); // Just the target group paths
alert( doc.pathItems.length - doc.groupItems[0].pathItems.length ); // The rest…
var count = doc.groupItems[0].pathItems.length;
for ( var i = 0; i < count; i++ ) {
doc.selection = doc.groupItems[0].pathItems[i];
$.sleep( 500 );
app.redraw();
};
Just target the required groupItem…? As you can see from this you can isolate any objects within the doc… Should be exactly the same in VB…?