Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-27-2014, 07:40 AM
redzan redzan is offline find and replace in bold Windows 7 32bit find and replace in bold Office 2003
Advanced Beginner
find and replace in bold
 
Join Date: Feb 2012
Posts: 37
redzan is on a distinguished road
Default 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
Reply With Quote
  #2  
Old 07-27-2014, 03:35 PM
macropod's Avatar
macropod macropod is offline find and replace in bold Windows 7 32bit find and replace in bold Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
Reply



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

Other Forums: Access Forums

All times are GMT -7. The time now is 08:25 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft