The error you're seeing with the code is most likely due to your system using non-English regional settings. You should be able to resolve that by changing:
"<[A-Z]{2,3} [A-Z]{2,}>"
to:
"<[A-Z]{2;3} [A-Z]{2;}>"
and changing:
"<[A-Z\-]{4,}>"
to:
"<[A-Z\-]{4;}>"
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|