Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / December 2005

Tip: Looking for answers? Try searching our database.

Select an index in a .doc

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jean-paul.bataille@cegetel.fr - 15 Dec 2005 07:20 GMT
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
Cindy M  -WordMVP- - 19 Dec 2005 21:18 GMT
> I have a .doc with 3 indexes, each one is determined by switch \f "A"
> or "B" or "C", according to its contents.
[quoted text clipped - 3 lines]
>  
> 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 :-)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.