I have a paragraph and after this paragraph, I'd like to add another paragraph. I'm doing this using myPara.contents += "\r"
. I need this second paragraph to be a different style than the original paragraph. They problem is I cannot seem to get access to this new paragraph to style it.
From what I can tell, this new paragraph is added as a sort of sub paragraph of the first. myPara.paragraphs.count()
returns 2
. Trying to access it via myPara.paragraphs[1]
results in an error. Using myPara.paragraphs[-1]
or myPara.paragraphs.lastItem()
simply returns the original paragraph.
How can I get an object reference to the new paragraph?