Your 'revision' makes the trimming less comprehensive than my code. I doubt you really want to include punctuations other than '.' & ':', or closing parentheses & braces, as part of the hyperlink.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|