GlennMc was telling us:
GlennMc nous racontait que :
> Selection.HomeKey Unit:=wdStory
>
> ' Find and delete duplicate index fields
>
> For X = 1 To 2500
Why this arbitrary statement? Why 2500?
> Selection.Find.ClearFormatting
> With Selection.Find
> .Text = " XE "
I guess there is some missing code otherwise, as is, XE may not be found if
hidden text is not shown.
> .Forward = True
> .Wrap = wdFindAsk
[quoted text clipped - 8 lines]
>
> Selection.Find.Execute
I do not understand the purpose of these two lines of code:
> Selection.Extend Character:=""""
> Selection.Extend Character:=""""
[quoted text clipped - 31 lines]
>
> Next
I think you forgot to show us all the relevant code, or, if not, this code
as is, may not work all the time.
Also, you never explained what you expected from
.Wrap = wdFindAsk

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org