View Single Post
 
Old 06-19-2014, 12:29 PM
Cosmo Cosmo is offline Windows Vista Office 2007
Competent Performer
 
Join Date: Mar 2012
Posts: 240
Cosmo is on a distinguished road
Default

Quote:
Originally Posted by jpb103 View Post
This code is logically identical to the code segment I've just provided.
No, it's not.

You're setting oRng (which I assume has been defined as a Range object) to a string of formatted text. That should be your type mismatch.

And in your second example, you're setting the FormattedText.Text to the RTF data, which is what you are getting. You need to set the FormattedText to the RTF string.
Reply With Quote