![]() |
#1
|
|||
|
|||
![]()
How do I make the following macro replace in bold?
With Selection.Find .Text = "plan" .Replacement.Text = "ASSESSMENT AND PLAN:" .Forward = True .Wrap = wdFindContinue .Format = True .MatchCase = False .MatchWholeWord = False .MatchKashida = False .MatchDiacritics = False .MatchAlefHamza = False .MatchControl = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False End With |
#2
|
||||
|
||||
![]()
Your code is evidently created via the macro recorder. If you had specified bold for the replacement font when doing that, you'd have the code for specifying a bold replacement font. Better still would be to specify the 'Strong' Style for replacement.
PS: When posting code, please use the code tags. They're on the 'Go Advanced' tab at the bottom of this screen.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Hoxton118 | Word VBA | 7 | 06-10-2014 05:05 AM |
how to search and replace BOLD text >> font color change? | dylansmith | Word | 4 | 03-12-2013 09:51 PM |
![]() |
paulkaye | Word | 4 | 12-06-2011 11:05 PM |
![]() |
shabbaranks | Excel | 4 | 03-19-2011 08:38 AM |
![]() |
bostonboi | Word | 1 | 01-16-2011 01:54 PM |