Why bother, when a TOC field can do the same thing? Indeed, were I to be doing it with VBA, I'd simply have the code insert the TOC field. Any other 'Table of Contents' would not update to reflect subsequent document edits.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|