You haven't actually said what you're trying to achieve.
From the code, though, it appears you're trying to bookmark the first instance of '[FULLNAME: PDF] ' that occurs after the last Heading 1 text preceding the current selection that contains the same string, regardless of what Style that latter string has applied to it.
Please clarify.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|