Hi Brian,
The following macro will return the address of any cell in a table. If you select a cell on the last row and run the macro, the
address (which includes the row count) will be displayed on the status bar:
Sub CellAddress()
If Selection.Information(wdWithInTable) = True Then
If Selection.Cells(1).ColumnIndex > 26 Then
StatusBar = "Cell Address: " & Chr(64 + Int(Selection.Cells(1).ColumnIndex / 26)) & _
Chr(64 + (Selection.Cells(1).ColumnIndex Mod 26)) & Selection.Cells(1).RowIndex
Else
StatusBar = "Cell Address: " & Chr(64 + Selection.Cells(1).ColumnIndex) & _
Selection.Cells(1).RowIndex
End If
End If
End Sub
Add the macro to your Normal.dot template and you'll have it available at all times.
Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------
Does anybody know how to get a count on the number of rows in a table? I have a table that is approx. 203 pages long with approx
9 rows per page, but is there a way to get an exact count?
I appreciate any responses