Select an index in a .doc

J

jean-paul.bataille

Hi,

I have a .doc with 3 indexes, each one is determined by switch \f "A"
or "B" or "C", according to its contents.

I want to select only the "C" index, in order to work on
programmatically.

How can i do this job ?

Thanks,
Jean-Paul
 
C

Cindy M -WordMVP-

I have a .doc with 3 indexes, each one is determined by switch \f "A"
or "B" or "C", according to its contents.

I want to select only the "C" index, in order to work on
programmatically.

How can i do this job ?
If we're talking about the actual list, this is generated by an INDEX
field. So you should be able to loop through all the fields in a given
range (this could be the entire document range) and check whether the
'\f "A"' is in the string returned by the Code property. If it is,
you've found the field. The field's Result property should return the
Range, on which you can work. (But note that any changes you make will
be lost as soon as the field updates!)

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 :)
 

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