Still not using code tags ...
Glad you got the coding sorted. Do bear in mind, though, that your modifications make the code less flexible. As I also said previously, you could omit the text parameter entirely and just search for the styles.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|