![]() |
|
#1
|
||||
|
||||
![]() Like this Code:
Sub MFindReplace() Dim aDoc As Document, strFindText As String, strReplaceText As String strFindText = "Finders" strReplaceText = "Keepers" For Each aDoc In Application.Documents With aDoc.Range.Find .Text = strFindText .Replacement.Text = strReplaceText .Forward = True .Wrap = wdFindContinue .Format = False .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False .Execute Replace:=wdReplaceAll End With Next aDoc End Sub
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Find or replace in all word documents | jkathir | Word | 6 | 08-30-2019 07:27 AM |
![]() |
RPM7 | Word VBA | 6 | 05-12-2017 12:58 AM |
![]() |
kennethc | Word | 3 | 03-28-2015 02:49 AM |
![]() |
Ineedhelp! | Word | 3 | 03-04-2014 03:50 PM |
Find and replace multiple documents change style | BaPW | Word | 0 | 08-14-2011 11:12 AM |