How to bold a single character in a selection from VB6?

  • Thread starter msnews.microsoft.com
  • Start date
M

msnews.microsoft.com

How can I bold a single character from VB when writing a range to a Word
doc?

The code I use is thus - minues declarations and instantiations
How would I bold the word "a" in strText?

Set wPar = wDoc.Paragraphs.Add

strText = "This is a simple message."
strText = strText & vbCrLf
With wPar.Range
.Text = strText
.Font.Name = "Arial"
.Font.Size = 8
'.Paragraphs.Space15
.Bold = False
' .Font.Color = wdColorWhite
End With
 
D

Doug Robbins - Word MVP - DELETE UPPERCASE CHARACT

See answer to your later question.

--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top