#1
|
||||
|
||||
Counting rows with a macro?
In this thread, Andrew Lockton posts a macro that will display the number of rows in a selected table:
https://www.msofficeforums.com/word/...ows-table.html The macro is: Code:
Sub CountRows() msgbox Selection.Tables(1).Rows.Count End Sub |
#2
|
||||
|
||||
See the Identifying Table Cell Addresses 'Sticky' thread in the Word Tables forum: https://www.msofficeforums.com/word-...addresses.html. The macro there identifies both the addresses spanned by the selected range and the address of the last cell in the table (which includes both the column letter and row number).
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Counting table rows in a page | RavenSuzumiya | Word Tables | 1 | 06-09-2016 03:38 PM |
VBA merging cells and counting Merged rows | Snaybot | Excel Programming | 2 | 11-09-2015 03:56 AM |
Counting unique visitors by ward, counting monthly visits by status, editing existing workbook | JaxV | Excel | 9 | 11-14-2014 12:25 AM |
Looking for VBA or Macro Counting a specific value occuring in single, random, changing cell? | blackjack | Excel Programming | 1 | 09-11-2014 11:27 PM |
Word counting macro for newly added portion? | New Daddy | Word VBA | 24 | 09-30-2013 07:30 PM |