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
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