Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 06-30-2016, 09:28 PM
Guessed's Avatar
Guessed Guessed is offline Code to creating a custom TOC including too many styles Windows 10 Code to creating a custom TOC including too many styles Office 2013
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,185
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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Code to creating a custom TOC including too many styles How to create custom table styles? Pey1 PowerPoint 1 05-25-2016 02:15 AM
Styles in a Custom Ribbon inagalaxyfarfarawry Word 5 12-15-2015 11:18 AM
Custom Bar Styles dbsoccer Project 7 10-31-2013 07:26 AM
creating new styles hannu Word 8 04-28-2013 11:23 PM
Code to creating a custom TOC including too many styles Creating Styles Template? Stone Word 2 09-11-2012 04:54 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:29 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft