![]() |
|
#3
|
|||
|
|||
|
Options.DefaultHighlightColorIndex = wdYellow
Selection.Find.ClearFormatting With Selection.Find.Font .Bold = True .Italic = True .Superscript = False .Subscript = False End With Selection.Find.Replacement.ClearFormatting Selection.Find.Replacement.Highlight = True Selection.Find.Replacement.Style = ActiveDocument.Styles("cBI") With Selection.Find.Replacement.Font .Bold = False .Italic = False .Superscript = False .Subscript = False End With With Selection.Find .Text = "" .Replacement.Text = "" .Forward = True .Wrap = wdFindContinue .Format = True .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False End With Selection.Find.Execute Selection.Find.Execute Replace:=wdReplaceAll |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Style type character continues on to new paragraph | myalo | Word | 6 | 02-07-2021 02:56 PM |
| Automatically applying character style while using fast style feature | Didier Super | Word | 1 | 04-10-2017 05:10 AM |
Tab character causes style change to Heading 4 after macro
|
Jennifer Murphy | Word VBA | 2 | 12-14-2015 02:31 AM |
| Change the leading of a character style??? | Char t | Word | 1 | 11-05-2011 01:18 PM |
| Character style stripped while applying paragraph style | sams_gates | Word | 0 | 08-29-2009 02:03 AM |