I've inserted new text using:Selection.InsertAfter NewText
I cannot figure out why the new text is indented differently than the text above it.
How do I query the text above and make the indent of the new text match it?
-John
I've inserted new text using:Selection.InsertAfter NewText
I cannot figure out why the new text is indented differently than the text above it.
How do I query the text above and make the indent of the new text match it?
-John
Last edited by o1sowise; 05-30-2019 at 08:42 AM.
Indenting is a paragraph format property, so check that. Better still, check what Style is applied to the preceding content. Some Style definitions specify a different Style for the paragraph created by inserting a new paragraph after them.
Cheers
Paul Edstein
[Fmr MS MVP - Word]