WD: Adding Record Numbers to a Data File Table

Last reviewed: February 5, 1998
Article ID: Q110863
The information in this article applies to:
  • Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c
  • Microsoft Word for Windows 95, versions 7.0, 7.0a
  • Microsoft Word 97 for Windows

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, the appropriate method for your version of Word.

Word 97

Method 1:

          a. Select the first column in the table.

          b. Click the Table button on the Standard toolbar.

             This places a new column on the left of the table.

          c. Type the field name in the first cell of the column.

          d. Place the insertion point in the second cell of the column.

          e. Press ALT+SHIFT+PAGE DOWN to select the remainder of the
             column.

          f. Click the Numbering button on the Formatting toolbar.

Method 2:

          a. Select the first column in the table.

          b. Click the Table button on the Standard toolbar.

             This places a new column on the left of the table.

          c. Type the field name in the first cell of the column.

          d. Place the insertion point in the second cell of the column.

          e. Press ALT+SHIFT+PAGE DOWN to highlight the remainder of the
             column.

          f. On the Format menu, click Bullets And Numbering.

          g. Select the Numbered tab.

          h. Select the desired style.

          i. Click the Customize button to remove the trailing period in
             the Number Format box or to change other attributes.

          j. Click OK to exit the Customize Numbered List dialog box.

Word 6.x, 7.x

Method 1:

          a. Select the first column in the table.

          b. Click the Table button on the Standard toolbar. This places a
             new  column on the left of the table.

          c. Type the field name in the first cell of the column.

          d. Place the insertion point in the second cell of the column.

          e. Press ALT+SHIFT+PAGE DOWN to highlight the remainder of the
             column.

          f. Click the Numbering button in the Formatting toolbar.

          g. In the Table Numbering dialog box, select Number Down Columns
             and  select Number Each Cell Only Once.)

          h. Choose OK to apply the numbers.

Method 2:

          a. Select the first column in the table.

          b. Click the Table button on the Standard toolbar.

             This places a new column on the left of the table.

          c. Type the field name in the first cell of the column.

          d. Place the insertion point in the second cell of the column.

          e. Press ALT+SHIFT+PAGE DOWN to highlight the remainder of the
             column.

          f. On the Format menu, click Bullets And Numbering.

          g. Select the Numbered tab.

          h. Select the desired style.

          i. Click the Modify button to remove the trailing period in the
             Text After box or to change other attributes.

          j. Click OK to exit the Modify Numbered List dialog box.

          k. Click OK to exit the Bullets And Numbering dialog box.

          l. In the Table Numbering dialog box, select Number Down Columns,
             and select Number Each Cell Only Once.

          m. Click OK to apply the numbers.

MORE INFORMATION

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.

REFERENCES

"Microsoft Word User's Guide," version 6.0, page 300


KBCategory:
KBSubcategory: kbmerge
Additional query words: 6.0 Print datafile.dot macro rec_num
word7 word6 6.0a 6.0c 7.0 word95 winword create 7.0a word97
Keywords : kbmerge kbprint kbualink97
Version : 6.0 6.0a 6.0c 7.0 7.0a 97
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 5, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.