Sub q(str As String)
Dim lastCall As Integer
Selection.HomeKey wdStory
lastCall = 0
With Selection.Find
.Text = str + " [0-9]@."
.Font.Bold = 1
.MatchWildcards = True
Do
.Execute
If Not .Found Then
Exit Do
Else
selectNum = CInt(FunctionGroup.sectionNum(Selection.Text))
If selectNum - lastCall = 1 Then
lastCall = selectNum
Else
Selection.Range.HighlightColorIndex = wdYellow
End If
End If
Loop
End With
End Sub