How do I apply paragraph styles from a paragraph style group?
For example, my group name is: myGroup
It contains the paragraph style: mypar
How should I write this?
app.selection[0].texts[0].appliedParagraphStyle = mypar;Thank you.
For example, my group name is: myGroup
It contains the paragraph style: mypar
How should I write this?
app.selection[0].texts[0].appliedParagraphStyle = mypar;Thank you.
@dublove it is not about the approach @brian_p_dts took but about what are the possible approaches and there are not too many in this case. You need to locate the paragraphStyle to use it and there are two collections for that on the document object, namely
So the approach that @brian_p_dts used is fine, else you can also try with allParagraphStyles. However, there is no straight method to get the styles in the group.
-Manan
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.