How do I get the IDs of newly created shapes (in a macro) by shape operations like join, combine, trim, etc.
The fragment method is for example described by MS as follows:
QuoteBreaks selected shapes into smaller shapes.
expression.Fragment
expression A variable that represents a Selection object.
Return Value Nothing
Remarks
Using the Fragment method is equivalent to clicking Fragment on the Operations submenu of the Shape menu. The produced shapes are the topmost shapes in the containing shape of the selected shapes. They inherit the formatting of the first selected shape and have no text.
The original shapes are deleted and there aren't any shapes selected when the operation is complete.
Comparing the new page's list of shapes with the previous one does not seem to me the right solution.
any help is highly appreciated.
One of the ways is to use ShapeAdded events.
Decide the information, user defined cell ,shape data or shape name,
to give the new shapes before each operation.
Give the decided information to the newly added shapes in the ShapeAdded events.
Worked perfectly. Thank you very much.