Creating multiple indexes in a document

M

Marcos

Hi,
I have a document that I am adding text to using vb. As I add a value,
depending on the column from my recordset it comes from I want to add an XE
tag and include a \f option to indicate which one of three possible indexes
the text will be a part of. The indexes will then be inserted at the end of
the document.

I am not sure how to do this. Maybe I need to add the text as hidden text?
(I do not know how to do this either)
Any ideas?

I have found this site helpful:
http://taxonomist.tripod.com/indexing/wordflags.html

Thanks
-marcos
 
M

Marcos

Sorry all I found what I wanted:

add an XE field:
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:= _
"XE \f ""index1""", PreserveFormatting:=False

Create the index:
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:= _
"INDEX \f ""index1""", PreserveFormatting:=True
 

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