galaxygerma.blogg.se

Format table of contents word 2007
Format table of contents word 2007











Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback. Word Object Model Reference Support and feedback To count items in other stories use the collection with the Range object.

format table of contents word 2007 format table of contents word 2007

The Count property for this collection in a document returns the number of items in the main story only. ActiveDocument.Tables(1).ConvertToText Separator:=wdSeparateByTabs The following example converts the first table in the active document to text. The index number represents the position of the table in the selection, range, or document. Use Tables (Index), where Index is the index number, to return a single Table object. Set myRange = ActiveDocument.Range(Start:=0, End:=0)Ī Range:=myRange, NumRows:=3, NumColumns:=4 The following example adds a 3x4 table at the beginning of the active document. Use the Add method to add a table at the specified range.

#FORMAT TABLE OF CONTENTS WORD 2007 HOW TO#

Here you can see how to create table of contents in Word 2007 / 2010. When prompted whether to replace the existing table of contents, click on the. Microsoft Word gives us option to create automatic table of contents for our documents or books. Set the number of levels to display in the Show levels box. Next, select the formatting for the table of contents. Select Insert Table of Contents from the popup menu. As you can see in the image below, the table of contents uses the heading styles in your document to determine where each section begins. Select a built-in table from the menu that appears, and the table of contents will appear in your document. For Each aTable In ActiveDocument.TablesĪ = wdLineStyleSingleĪ = wdLineWidth025ptĪ = wdLineStyleNone Then click on the Table of Contents button in the Table of Contents group. Navigate to the References tab on the Ribbon, then click the Table of Contents command. The following example applies a border around each of the tables in the active document.

format table of contents word 2007

Use the Tables property to return the Tables collection. A collection of Table objects that represent the tables in a selection, range, or document.











Format table of contents word 2007