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.
|