Counting rows in a word table 2003

M

Mary Ann

I have a very large Word table - over 1000 rows. It
contains name and address information. I want to count
how many records I have i.e. how many rows in the table.
The count(above) function returns 0. The line indicator
in the status bar only appears to stop at 999.
Some rows have more than one paragraph in them - but I
want that still to count as 1

I am in the process of turning this into an Access table
but I need to know I am transferring the correct number
of records.

Any help would be greatly appreciated.

Mary Ann
 
J

Jay Freedman

Hi Mary Ann

The quickest way I know is to put the cursor in the last row of the table,
and open the Table > Properties dialog. Click on the Row tab. The row number
will be shown just below the Size heading.

With a little more setup, you can have one-button access to the row count,
and the cursor can be anywhere within the table. Use the procedure at
http://www.gmayor.com/installing_macro.htm to install this macro and assign
a toolbar button to it:

Sub RowCount()
If Not Selection.Information(wdWithInTable) Then
MsgBox "Put the cursor in the table first."
Exit Sub
End If

MsgBox Selection.Tables(1).Rows.Count & " rows"
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top