Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2006

Tip: Looking for answers? Try searching our database.

A 'formatted' text box?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ed - 10 Mar 2006 17:17 GMT
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)
Jean-Guy Marcil - 10 Mar 2006 19:48 GMT
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
[quoted text clipped - 7 lines]
>
> 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.

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org 

Ed - 12 Mar 2006 12:46 GMT
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)

====================
> Ed was telling us:
> Ed nous racontait que :
[quoted text clipped - 27 lines]
> You may choose to go down this road if you are developing something for a
> closed environment.
Jean-Guy Marcil - 15 Mar 2006 19:25 GMT
Ed was telling us:
Ed nous racontait que :

> Jean-Guy,
>
[quoted text clipped - 4 lines]
> 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.

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org 

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.