Formatting only part of a string of text

L

L.A. Lawyer

I want to create a string of text which includes some formatting (italics
and bold) and some text without formatting.

How is that done in Word VBA?
 
D

Doug Robbins - Word MVP

How would the part of the text that is to be formatted be identified?

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
L

L.A. Lawyer

There was no answer!


Doug Robbins - Word MVP said:
How would the part of the text that is to be formatted be identified?

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
L

L.A. Lawyer

It would be identified as a separate string variable, e.g.,

UnformattedTextVariable & ItalicizedTextVariable & BoldedTextVariable
 
D

Doug Robbins - Word MVP

Well, assuming that you are displaying the text in the document by the use
of {DOCVARIABLE varname} fields, add \* charformat switches to the fields
that you want to display as formatted text and apply the desired formatting
to the D of DOCVARIABLE

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

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