Manipulating Word Paragraphs and Shapes using VBA

P

Peter Richards

I am attempting to manipulate a document containing paragraphs and inline
shapes (pictures and ole objects). I am having trouble accessing these
objects in the order in which they appear in the document. Does anyone have
any experience doing this?
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?UGV0ZXIgUmljaGFyZHM=?=,
I am attempting to manipulate a document containing paragraphs and inline
shapes (pictures and ole objects). I am having trouble accessing these
objects in the order in which they appear in the document. Does anyone have
any experience doing this?
Could you please be more specific about what you're trying to do, and the
problem you're running into? I assume you know you can use For (Each) Next to
"walk" the paragraphs. And then I'd check each paragraph's range for the
InlineShapes.Count, and "walk" those, if there are any.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
K

Klaus Linke

And are you sure you're talking about inline shapes?
If you have trouble accessing the objects in the order in which they appear, it seems more likely you are talking about Shapes (perhaps anchored to some paragraph, perhaps in the drawing layer).

Regards,
Klaus
 

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