Assign text to String with formatting?

E

Ed

Are the commands or switches I can use to directly assign text to a string
within a macro with formatting? For instance, if I have:
strText = "This is my text."
can I format it, say, bold so when I write it to a document I get:
"This is my text."


Ed
 
H

Helmut Weber

Hi Ed,

IMHO, no.
A string is a sequence of bytes.
One could set up a two dimensional array for formatting,
which holds the formatting information for each character,
but I'd say, forget about it.

Would be a nive feature to have.
Not too difficult, but lots and lots of tedious coding.

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
 

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