Looping over an image - Finding text over and below a image

A

Arry Potter

Hi,

Case Scenario :
I want to find the paragraph above and below a couple of images in a word
document. The images are all of type - iNLINE SHAPE

There are many images in a document. So the logic should loop through each
image, find text above and below (3 lines above and 3 lines below should be
good) and return the text as a msgbox or save in a file. Can you please help

Note: The text above and below can be paragraph, table or heading text.

Case example :
Here is the document structure

<Text1 : Paragraph>
<Image: InlineShape>
<Text2:paragraph>
<Text3 :Table>
<Image: InlineShape>
<Text4:Table>

I am using
Word 2003
Windows XP OS
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top