View Single Post
 
Old 06-30-2016, 09:28 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2013
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,977
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

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
Reply With Quote