Quote:
Originally Posted by macropod
Try:
Code:
Sub Demo()
Application.ScreenUpdating = False
Dim Rng As Range
With Selection
Set Rng = .Range
With .Find
.ClearFormatting
.Replacement.ClearFormatting
.Format = False
.Forward = True
.Wrap = wdFindStop
.MatchWildcards = False
.Text = "^e"
End With
Do While .Find.Execute = True
If .InRange(Rng) = False Then Exit Do
MsgBox .Endnotes(1).Index
.Collapse wdCollapseEnd
Loop
Rng.Select
End With
Application.ScreenUpdating = True
End Sub
|
Hello,
Many thanks, this works perfectly !
Wim