• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2063
  • Last Modified:

Add serial number in table - Word 2007

Hello there,

I have created a table with 3 cols and i want to add serial number counter in the first col.how can i do it.i am using word 2007
2 Solutions
You could try selecting the first column and making a numbered list with the Numbering button in the Paragraph group on the Home tab.

Or you could use some VBA code like this:
    Dim tbl As Table
    Dim r As Integer
    Set tbl = ActiveDocument.Tables(1)
    For r = 1 To tbl.Rows.Count
        tbl.Cell(1, 1).Range.Text = r
    Next r

Open in new window

Chris BottomleyCommented:
If it's a 'new' table then add a paragraph number to the first column and each time you add a row the number will update accordingly?

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

7 new features that'll make your work life better

It’s our mission to create a product that solves the huge challenges you face at work every day. In case you missed it, here are 7 delightful things we've added recently to monday to make it even more awesome.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now