![]() |
|
#4
|
|||
|
|||
|
I tried my luck, and I have no luck :-)
Help would be appreciated Sub MFindReplace() Dim aDoc As Document Dim strFindText As String Dim strReplaceText As String With Selection .HomeKey Unit:=wdStory With Selection.Find .Text = strFindText .Replacement.Text = strReplaceText .Forward = True .Wrap = wdFindContinue .Format = False .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False End With Selection.Find.Execute Replace:=wdReplaceAll For Each aDoc In Application.Documents MsgBox aDoc.Name Next aDoc End With End Sub |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Find or replace in all word documents | jkathir | Word | 6 | 08-30-2019 07:27 AM |
Find & Replace text in Field Code across multiple documents
|
RPM7 | Word VBA | 6 | 05-12-2017 12:58 AM |
Find & replace footer text in a folder of Word 2010 documents
|
kennethc | Word | 3 | 03-28-2015 02:49 AM |
How do I find/replace the same word in multiple documents?
|
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 |