The Jolly Contrarian:Macro: Difference between revisions

From The Jolly Contrarian
Jump to navigation Jump to search
Created page with " ' Wikifier Macro ' ' Selection.Find.ClearFormatting Selection.Find.Replacement.ClearFormatting With Selection.Find .Text = "Cash" .Replacement.T..."
 
No edit summary
 
Line 6: Line 6:
     With Selection.Find
     With Selection.Find
         .Text = "Cash"
         .Text = "Cash"
         .Replacement.Text = "{{nycsaprov|Cash}}"
         .Replacement.Text = "<nowiki>{{nycsaprov|Cash}}</nowiki>"
         .Forward = True
         .Forward = True
         .Wrap = wdFindContinue
         .Wrap = wdFindContinue

Latest revision as of 23:12, 19 January 2020

' Wikifier Macro
'
'
   Selection.Find.ClearFormatting
   Selection.Find.Replacement.ClearFormatting
   With Selection.Find
       .Text = "Cash"
       .Replacement.Text = "{{nycsaprov|Cash}}"
       .Forward = True
       .Wrap = wdFindContinue
       .Format = False
       .MatchCase = True
       .MatchWholeWord = False
       .MatchWildcards = False
       .MatchSoundsLike = False
       .MatchAllWordForms = False
   End With
   Selection.Find.Execute Replace:=wdReplaceAll
End Sub