#1
|
|||
|
|||
find and replace in bold
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] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Find what box in Find and replace limits the length of a search term | 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 |
Bad view when using Find and Find & Replace - Word places found string on top line | paulkaye | Word | 4 | 12-06-2011 11:05 PM |
Help with find and replace or query and replace | shabbaranks | Excel | 4 | 03-19-2011 08:38 AM |
Using replace to make a word bold and its proceeding character. | bostonboi | Word | 1 | 01-16-2011 01:54 PM |