A 'formatted' text box?

E

Ed

I want to display a certain portion of text onto a user form, but I want the
formatting to carry into the text box I have created for this purpose. How
can I do that? (Right now the best I can get is plain, unformatted text,
with fields showing up as square blocks.)

e.g., :
textbox1=selection.text

Can it be done?

Ed (in Virginia)
 
J

Jean-Guy Marcil

Ed was telling us:
Ed nous racontait que :
I want to display a certain portion of text onto a user form, but I
want the formatting to carry into the text box I have created for
this purpose. How can I do that? (Right now the best I can get is
plain, unformatted text, with fields showing up as square blocks.)

e.g., :
textbox1=selection.text

Can it be done?

Ed (in Virginia)

You need to add a control to the Userfrom toolbox (Right-click the toolbox
and click on "Additional controls...").

But IIRC, the RichTextbox control is not par of the standard Windows or
Office installation. This means you need to get a third party control, like

So you have to find one yourself, like the one offered at
http://www.vbcodesource.com/control.html
or
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?lngWId=1&txtCodeId=14276

The problem lies in the distribution, licensing, etc...
You may choose to go down this road if you are developing something for a
closed environment.

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
E

Ed

Jean-Guy,

Thank you for your reply. I will try that.

I am curious to know if a control isn't already built into Word. When a
folder is displayed, one of the display options is "Preview" and Preview
shows formatted text. Is there a way to use that same control?

Ed (in Virginia)

====================
 
J

Jean-Guy Marcil

Ed was telling us:
Ed nous racontait que :
Jean-Guy,

Thank you for your reply. I will try that.

I am curious to know if a control isn't already built into Word.
When a folder is displayed, one of the display options is "Preview"
and Preview shows formatted text. Is there a way to use that same
control?

Sorry, but I do not believe that this is exposed to VBA.

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

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