I'm trying to come up with a method to programmatically adjust or replace images/charts in Word for mac. My idea is to provide a list of images to be imported, and the name of the target Shape in the document.
As Shapes have a .name property, it is trival to find a shape object with the correct name, copy it's position and size properties, and insert a new image to the same position.
However if the image is an INLINEshape, there is no .name property. I don't even see an easy way tell what index an inline shape is unless that index was already known. At this point the ONLY reliable method I can think of is to have the user be prompted to MANUALLY select the appropriate image that next needs to be changed. This is not acceptable as there may be a list of hundreds of images to find and change.
How can I pass an identifier of some kind to my macro, and ensure that I am referring to the correct inlineshape?
Thanks in advance for any suggestions.
Bookmarks