Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
 
Posts: n/a
Default Select an index in a .doc

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

  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Cindy M -WordMVP-
 
Posts: n/a
Default Select an index in a .doc

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

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Create see and see also references in an index? Duchesse Microsoft Word Help 2 April 1st 08 09:34 PM
Creating an index: need a template of a concordance file Dr Roben Tables 3 September 20th 05 05:20 AM
Can you please make Word select only the text I highlight- not mo Angela Hey Microsoft Word Help 4 August 4th 05 05:33 PM
Identical 2-level index tags yield different results in index. Hel Leslie in Montreal Microsoft Word Help 2 April 28th 05 07:12 PM
creating an index, etc. SandyTechWriter Microsoft Word Help 0 February 9th 05 07:17 PM


All times are GMT +1. The time now is 06:39 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"