zoqaface.blogg.se

Insert table contents word 2013
Insert table contents word 2013







If you still need to bring in entries from the "Outline levels" then you need to set the appropriate parameter in the. You can do that in VBA code using Range:=tocRange, UseFields:=True, TableID:="C" (since C is the identifier you are using in yourTC fields.) I believe one of the main problems is the TableId field in the markEntry function. I feel like I am on the right track, but I don't know enough about the TablesOfContents object to do what I would like to do. This gets repeated for each object that I iterate through in the For loop with the correct title for each section. This results in the Table of Contents being inserted properly but only displays " No table of contents entries found." Also, at the end of the document, I get weird unformatted text that looks something like this: ObjSelection.TypeText "Info" + vbNewline + oInfo("Name") entryRange, oInfo("Name"), oInfo("Name"), W, 1 I am able to insert a Table of Contents but am unable to populate the table.

insert table contents word 2013 insert table contents word 2013

I am attempting to write a vbs script to create a word document that also contains a Table of Contents.









Insert table contents word 2013