Marc Santhoff wrote:
Hi,
I'm stuck with text portions again:
The task is to insert a TextRange consisting of one or more paragraphs with complex char and paragraph formatting into a given text.
How is this expected to be done?
I read any type of docs, but found no direct method of doing so. I can insert a string without formatting or some special TextContent. But nothing inbetween. Okay, I can use the clipboard ...
If this is missing from the api I think it's worth an RFE.
TIA,
Marc
Hi Marc,
I am not certain that I understand what you want to do.... Do you want to COPY a range of text from one location to another? Of so, then you probably want to copy to the clipboard and then paste.
Or, do you want to insert a lot of text that will contain special formatting? If you want to insert text with special formatting, you probably want to first insert the text as a string and then apply the formatting. You are correct that this is not ideal.... You may want to consider using a paragraph style. This will make it much easier to apply formatting to sections of the text without setting individual properties.
-- Andrew Pitonyak My Macro Document: http://www.pitonyak.org/AndrewMacro.sxw My Macro Book: http://www.hentzenwerke.com/catalog/oome.htm Free Info: http://www.pitonyak.org/oo.php
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
