preview autotext entry in RTF-Control

D

Daniel Bolege

Hello everybody,

I guess, you know Word's build-in autotext dialog that lets the user add,
delete and insert text modules. This dialog has a preview of the selected
autotext that can show the format of the text, too.

In a user form, I would like to make this feature available as
well. I put a rich text box (RICHTX32.OCX) on my form in that I would like
to load the selected autotext into.

Unfortunately this does not work:

RTB_Preview.TextRTF = _
ActiveDocument.AttachedTemplate.AutoTextEntries( _
"myAutotext").Value

The .Value-Property just returns the autotext without any formating
informations. Any suggestions how to get the RTF data stream would be very
appreciated.

Regards
Daniel
 

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