I
Ildhund
My macro to extract images from a Publisher file (see
) is working fine, thanks to Ed,
for cases where the image is grouped with a text box containing the caption.
I can use part of the caption as FileName and all of it as a Comment in the
File Properties.
However, while all images have their caption in a text box beneath the
picture, this pair of objects is not always grouped. When I cycle through
the objects on a page, I can see that sometimes the caption was placed first
and sometimes the image. So, having selected an image to work with, how do I
then select the text box immediately below it on the page? I can locate the
text box roughly by starting at .Top and .Left, Increment by .Height + 5 and
..Width/2, but how do I select the object at that position on the page, given
that there is only one?
) is working fine, thanks to Ed,
for cases where the image is grouped with a text box containing the caption.
I can use part of the caption as FileName and all of it as a Comment in the
File Properties.
However, while all images have their caption in a text box beneath the
picture, this pair of objects is not always grouped. When I cycle through
the objects on a page, I can see that sometimes the caption was placed first
and sometimes the image. So, having selected an image to work with, how do I
then select the text box immediately below it on the page? I can locate the
text box roughly by starting at .Top and .Left, Increment by .Height + 5 and
..Width/2, but how do I select the object at that position on the page, given
that there is only one?