Solved

Add serial number in table - Word 2007

Posted on 2013-01-08
2
1,949 Views
Last Modified: 2013-01-08
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
0
Comment
Question by:zolf
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 250 total points
ID: 38754192
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

0
 
LVL 59

Assisted Solution

by:Chris Bottomley
Chris Bottomley earned 250 total points
ID: 38754280
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?

Chris
0

Featured Post

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question