A family of Microsoft word processing software products for creating web, email, and print documents.
Basically the code is working. But I have no chance to change the ZOrder of the two shapes in a way that the user can select the text box "BoxTwo" with the mouse. Independent of all ZOrder statements that I tried always "BoxOne" is the one that gets selected and is selectable. Of course I can change the sequence of the text boxes creation in this sample, but I have no influence of the creating sequence in reality.
I'd be very thankful for any idea!
BTW, I use the strange way of grouping the shapes together with the Select statements because that's the onliest way I could find how programmatically grouping items really works. The samples from MS don't seem to work.
I would guess that it has something to do with the Grouping. The grouping function keeps the items together and until they are ungrouped, it's not going to let you rearrange the order. However, you could try experimenting with the other mso properties of BringForward, SendBack, etc.
Regarding the Grouping and having to set the Replace attribute to False is probably a shortcoming in the Word 2011 Object Model. You should send a Feedback message to MS on that. In addition you should point out that the Array function for selecting Shape ranges is not working at all.