
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. Indexes Collection Object Support and feedback MyRange.Collapse Direction:=wdCollapseEndĪ Range:=MyRange, Type:=wdIndexRunin

Range:=Selection.Range, Entry:="My Entry" This example marks an index entry, and then it creates an index at the end of the active document. Use the MarkEntry method to mark index entries to be included in an index. For the list of valid WdLanguageID constants, see the Object Browser in the Visual Basic Editor.Īn index is built from Index Entry (XE) fields in a document. Can be any of the WdLanguageID constants. The sorting language to be used for the specified index. Can be either of the following WdIndexSortBy constants: wdIndexSortByStroke or wdIndexSortBySyllable. The sorting criteria to be used for the specified index. True to include separate headings for accented letters in the index (for example, words that begin with "?" and words that begin with "A" are listed under separate headings). Specifying 0 (zero) sets the number of columns in the index to the same number as in the document. On the Define New Number Format dialog box, select Right (or Center) from the Alignment drop-down list. Then, click the down arrow on the Numbering button in the Paragraph section and select Define New Number Format from the drop-down menu. The number of columns for each page of the index. Put the cursor anywhere in the list and make sure the Home tab is active. Can be either of the following WdIndexType constants: wdIndexIndent or wdIndexRunin. Specifies whether subentries are on the same line (run-in) as the main entry or on a separate line (indented) from the main entry. True to align page numbers with the right margin. Can be one of the WdHeadingSeparator constants. The text between alphabetical groups (entries that start with the same letter) in the index. The index replaces the range, if the range is not collapsed.

The range where you want the index to appear. A variable that represents an ' Indexes' collection. Add ( Range, HeadingSeparator, RightAlignPageNumbers, Type, NumberOfColumns, AccentedLetters, SortBy, IndexLanguage)Įxpression Required. The table is now removed and the text still there.Returns an Index object that represents a new index added to a document. Select the separator type between text, then click OK. This action also will trigger an exclusive menu for managing the table. Should table of contents include itself?.How do I hide the table of contents in Word?.How do I remove the first column table style in Word?.How do you delete a column from a table?.How do I delete multiple cells without shifting?.What is the shortcut key to delete the rows and columns from the table?.We’re going to change the alignment on the numbers in our example list to right-aligned so they look like the list on the right above. How do you delete the contents of a table in Word without deleting the table? When the numbers are left-aligned, the decimal points are not aligned and any items with two or more digits are closer to the text of the items than the one-digit numbers, as shown on the left in the above image.How do you manage a table of contents in Word?.How do I stop text from showing in table of contents?.How do I remove rows and columns in Word without losing data?.How do I delete cells without shifting?.Why is there a box around my text in Word?.How do I delete a table without deleting a table?.How do I remove text from a table of contents in Word 2016?.How do I remove a text box in Word but keep the text?.To add a table of contents, footnotes, or a table of citations, open the References tab. Left align text Ctrl+L Right align text Ctrl+R Cancel Esc Undo Ctrl+Z Re-do Ctrl+Y. EDIT: Here (rename from JPG to ODT) is a sample file using the default ToC settings in v4.1.4.2 under GNU/Linux. Right-click on the Contents 1 entry > Modify > Tabs tab > adjust tab settings as required > click OK.
WORD 2016 TABLE OF CONTENTS RIGHT ALIGN PAGE NUMBERS WINDOWS

