Hi Andrew,
Two comments:
1. Your code will fail for strings of >40 characters (>37 if the first is numeric), since the maximum bookmark name length is 40 characters.
2. Also, depending on what's being bookmarked, your code won't leave all instances bookmarked if two or more ranges begin with the same 40 characters.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|