Without you document, it is difficult to say. Recreating a document that could be used to test your code would take more time than I have to spend on this.
You might try declaring a variable and setting it to the shpGroup anchor before ungrouping and then setting the regrouped shpGroup anchor to that variable.
|