Test for index entry

I’m writing a basic macro to create index entries for text values in tables in my document. I have figured out how to create the entry, but if I run the macro multiple times I don’t want it to create multiple entries for the same text.

How can I test if a particular section of text has an associated index marker?

Found out how to do this:

	Dim docIndex
  	docIndex = oResult.Start.DocumentIndexMark
 	If isempty (docIndex) ' no index mark here