Searching for Text in a Footnote

A

Alan

I can do a search in Word and find text in a footnote. However,
when I use the code below, recorded as a VBA macro during the search,
it does not find text in a footnote.

Why does it do this, and how can I search using VBA for text in a
footnote?

Thanks, Alan

Sub FindBookmark()
'
' FindBookmark Macro
'
'
Selection.Find.ClearFormatting
With Selection.Find
.Text = "General-purpose: Designed so it can support model"
.replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = True
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top