Microsoft KB Archive/110863

= WD: Adding Record Numbers to a Data File Table =

Article ID: 110863

Article Last Modified on 1/18/2007

-

APPLIES TO


 * Microsoft Word 6.0 Standard Edition
 * Microsoft Word 6.0a
 * Microsoft Word 6.0c
 * Microsoft Word 95 Standard Edition
 * Microsoft Word 95a
 * Microsoft Word 97 Standard Edition

-



This article was previously published under Q110863



SUMMARY
The Word version 2.0 for Windows DATAFILE template contains a macro to number data file records by adding a new column and filling the column with consecutive numbers.

This template in not included with Word versions 6.x, 7.x, or 97, because the functionality that the macro adds is built in to these versions of Word (in these versions of Word you can use the Bullets And Numbering command).



MORE INFORMATION
To number data file records, use the appropriate method for your version of Word.

Word 97
Method 1:

 Select the first column in the table. Click the Table button on the Standard toolbar.

This places a new column on the left of the table. Type the field name in the first cell of the column. Place the insertion point in the second cell of the column. Press ALT+SHIFT+PAGE DOWN to select the remainder of the column. Click the Numbering button on the Formatting toolbar.</ol>

Method 2:

<ol style="list-style-type: lower-alpha;"> Select the first column in the table.</li> Click the Table button on the Standard toolbar. This places a new column on the left of the table.</li> Type the field name in the first cell of the column.</li> Place the insertion point in the second cell of the column.</li> Press ALT+SHIFT+PAGE DOWN to highlight the remainder of the column.</li> On the Format menu, click Bullets And Numbering.</li> Select the Numbered tab.</li> Select the desired style.</li> Click the Customize button to remove the trailing period in the Number Format box or to change other attributes.</li> Click OK to exit the Customize Numbered List dialog box.</li></ol>

Word 6.x, 7.x
Method 1:

<ol style="list-style-type: lower-alpha;"> Select the first column in the table.</li> Click the Table button on the Standard toolbar. This places a new column on the left of the table.</li> Type the field name in the first cell of the column.</li> Place the insertion point in the second cell of the column.</li> Press ALT+SHIFT+PAGE DOWN to highlight the remainder of the column.</li> Click the Numbering button in the Formatting toolbar.</li> <li>In the Table Numbering dialog box, select Number Down Columns and select Number Each Cell Only Once.</li> <li>Choose OK to apply the numbers.</li></ol>

Method 2:

<ol style="list-style-type: lower-alpha;"> <li>Select the first column in the table</li> <li>Click the Table button on the Standard toolbar. This places a new column on the left of the table.</li> <li>Type the field name in the first cell of the column.</li> <li>Place the insertion point in the second cell of the column.</li> <li>Press ALT+SHIFT+PAGE DOWN to highlight the remainder of the column.</li> <li>On the Format menu, click Bullets And Numbering.</li> <li>Select the Numbered tab.</li> <li>Select the desired style.</li> <li>Click the Modify button to remove the trailing period in the Text After box or to change other attributes.</li> <li>Click OK to exit the Modify Numbered List dialog box.</li> <li>Click OK to exit the Bullets And Numbering dialog box.</li> <li>In the Table Numbering dialog box, select Number Down Columns, and select Number Each Cell Only Once.</li> <li>Click OK to apply the numbers.</li></ol>

After following the above steps, the numbering will be automatically updated as records are added and removed.

NOTE: The numbers you add using either of the above methods do not appear in your merged documents. If you insert the merge field in your main document, it yields no result in the merged document. If you want to insert the record number in your merged document, choose the Insert Word Field button on the Mail Merge toolbar, and then select Merge Record # from the list that is displayed.

To remove the numbers from the table, select the column and:


 * On the Edit menu, and click Cut. -or-


 * Press CTRL+Q to return to the current style. -or-


 * Select the numbered cells and click the Numbering button on the Formatting toolbar.

<div class="references_section">