Hi,
I need a macro to replace the paragraphs with the style tags based on conditions
All the style tags which need to be replaced are existed with the attached document.
- Replace all the paragraphs in the active document whish has first line indent > 0” but <0.3” to a style named”P1”, and
- Al l the bold paragraphs which has first line indent >0” but <0.3” to a style named “P2”, and
- All paragraphs which first line indent >0.3” and <0.5” will be “P1A”
- All paragraphs which has alignment fully left (no indent) should be style named “P”
- All bold paragraphs which has alignment fully left (no indent) should be style named “H2”
- All the centered paragraphs should be style named “H7”
- All the bold and centered paragraphs should be style named “H1”
- All paragraphs which has left alignment >0” but <0.4” (no first line or hanging indent) should be style named “I2A”
- All paragraphs which has left alignment >0” but <0.4” and first line alignment >0.2” but <0.4” should be style named “I2”
- All paragraphs which has hanging alignment <0.40” and left indent 0” should be style named “IH2”
- All paragraphs which has hanging alignment >0.41” but <0.70” and left indent >0” and <0.4” should be style named “IH2A”
- All the bold paragraphs which has hanging alignment <0.40” and left indent 0” should be style named “IH2QB”
And also I want to attach all these style tags in any word file.
Document attached in the below link
https://www.dropbox.com/s/kt3mezxuyeztzs5/Style%20tags.docx
Could any one look and help on this please?
Thanks
John