For Each...Next Processing Order of Shapes?

S

sbmack7

I want to process a collection of shapes in a specific order through a
For Each...Next loop. But the current order sequence is not the same
as my desired ordering. It looks like shapes are processed based on
the order in which they were placed on the page. I suppose I could
add a custom property that contains an ordering number to reach shape
and then use an indexed For... Next construct to process them.

Is there a better way to do it?

Thanks,

SteveM
 
P

Paul Herber

I want to process a collection of shapes in a specific order through a
For Each...Next loop. But the current order sequence is not the same
as my desired ordering. It looks like shapes are processed based on
the order in which they were placed on the page. I suppose I could
add a custom property that contains an ordering number to reach shape
and then use an indexed For... Next construct to process them.

Is there a better way to do it?

Is the order calculated or determined in some other way? As you say,
put the order into the shape itself, loop through the shapes and put
the shapeIDs into an array, so, say for 5 shapes the array might be
0 -> 3
1 -> 1
2 -> 4
3 -> 0
4 -> 2
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top