Re: Saving formatting by Klaus
Klaus
Tue May 10 17:33:37 CDT 2005
Hi Alex,
I don't think you need to save/restore anything.
> 3. Inset several lines of text, formatted with a given style.
I guess you mean "paragraphs", not "lines" (since you talk of applying a =
[paragraph?] style to the new text)?=20
In that case, you need to insert a paragraph mark anyway.
You can insert text at the end of the old paragraph, or below it, and =
format it any way you want.
Anything you insert at the start of the new paragraph will get all the =
character and paragraph formatting that was used at that point.
Greetings,
Klaus
"Alex" <inssup35@online.nospam> wrote:
Hello,
How can do the following programmatically (in a macro or add-in):
1. Go to given position in the document
2. save the current formatting used (character, paragraph, etc.)
3. Inset several lines of text, formatted with a given style.
4. Restore the saved formatting and add some more text.
Best wishes,
Alex.
--=20
Address email to user "response" at domain "alexoren" with suffix "com"