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
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