You shouldn't need to set the tableader via the vba. This should be done by the styles already in the document.
You could fiddle with this vba code forever but I would just create a TOC manually with whatever styles and formatting you want and then when you are happy with it - save that TOC as a Quick Part building block. Then you can either insert it by choosing it from the quick parts OR by typing its name and pressing F3 (or Enter), OR recording a macro of inserting that building block.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
|