Review the Code

3. Try This: Select the Code

Select the following code:

 Selection.Find.Replacement.Font.Color = 12611584
With Selection.Find
.Text = "have"
.Replacement.Text = "have"
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll

 

Try This, Too: Copy and Paste the Code

Go to Edit->Copy.

Place your cursor after =wdReplaceAll and click the ENTER key on your keyboard to create a new line, just like in Microsoft Word. 

 

Go to Edit->Paste.

 

Developer -> Code ->Macros ->Edit

 
 
 
 

Exam 77-887: Microsoft Word Expert 2010

5. Managing Macros and Forms

5.2. Apply and manipulate macro options.