Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2006

Tip: Looking for answers? Try searching our database.

VBA Find Replace text including in Footnotes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Suzanne Bronson - 14 Oct 2006 23:20 GMT
I have a macro that includes a find/replace which works great except that it
does not include a search of footnotes.  How can I include footnotes in this..

With Selection.Find
       .Text = VARIABLE
       .Replacement.Text = SUBJECT
       .Forward = True
       .Wrap = wdFindContinue
       .Format = False
       .MatchCase = True
       .MatchWholeWord = True
       .MatchWildcards = False
       .MatchSoundsLike = False
       .MatchAllWordForms = False
   End With
   Selection.Find.Execute Replace:=wdReplaceAll

Thanks very much.

Suzanne Bronson
Helmut Weber - 14 Oct 2006 23:25 GMT
Hi Suzanne,

sorry, it's not that simple,

see:

http://word.mvps.org/faqs/customization/ReplaceAnywhere.htm

Signature

Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.