MS Word VBA: find a textbox by location:
I have a document with between 4 to 12 textboxes. Using VBA I find the textboxes with specific text in them. Now I need to find the textbox immediately before that textbox by position. I thought a "For Each varShape In ActiveDocument.Shapes" loop would find the textboxes in order that they occur in the document (I use varShape.Anchor.start to find the character position of the anchor) but it does not. Currently I am thinking of saving the name of each textbox and its position in an array, then sort the array by position. But I wonder if there is a way to directly get the textbox that is positioned before the textbox I found?