Which above macro? There are three:
Code:
Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey
Dim oRng As Word.Range
Set oRng = ActiveDocument.Range
With oRng.Find
.Text = "Ref."
While .Execute
Do While oRng.Characters.Last.Next Like "[0-9]" _
And oRng.Characters.Last.Next.Font.Superscript
oRng.MoveEnd wdCharacter, 1
Loop
If Len(oRng.Text) > 4 Then
oRng.Select 'Do something with the found range.
End If
oRng.Collapse wdCollapseEnd
Wend
End With
lbl_Exit:
Exit Sub
End Sub