Delete empty styles from document

H

Herold Winter

I am creating new documents with Mail Merge.
I am using different texts and styles depending on if-
construnctions. As a result i get a lot of empty styles.
How can i remove these empty styles ?

Example of Merge if-construction:
{ If {MERGFIELD No_} = "0" "{MERGEFIELD Name}" ""}
 
W

Word Heretic

G'day "Herold Winter" <[email protected]>,

something similar to

for each para in activedoc.paras
select case para.style
case "ThisOne", "ThatOne",...
if len(para.text)....



I am creating new documents with Mail Merge.
I am using different texts and styles depending on if-
construnctions. As a result i get a lot of empty styles.
How can i remove these empty styles ?

Example of Merge if-construction:
{ If {MERGFIELD No_} = "0" "{MERGEFIELD Name}" ""}

Steve Hudson

Word Heretic, Sydney, Australia
Tricky stuff with Word or words for you.
wordheretic.com

Replies offlist may require payment.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top