View Single Post
 
Old 10-06-2016, 04:40 PM
Fred256 Fred256 is offline Windows 10 Office 2007
Novice
 
Join Date: Oct 2016
Posts: 5
Fred256 is on a distinguished road
Default Setting part of a paragraph bold

Hi, I'm working thru a doc looking for matching paragraphs (one containing " - ").
If found I want split(ThisOne, " - ")(0) to be bold and split(ThisOne, " - ")(1) to be not bold.

Not sure how to tackle this.. There's not much to my code, pp is the string I start with is

For Each p In ActiveDocument.Paragraphs
pp = p.Range.Text

and I've found I can change pp then write it back with

p.Range.Text= pp

However, as it's only part of pp, I'm a bit stuck.

Thanks for any advice. I'm new to this.

Fred.
Reply With Quote