![]() |
|
#1
|
|||
|
|||
|
I have a series of tables with nested tables. There may be more than one nested table in each primary table cell.
I want a procedure that counts the number of rows in whichever table is the current selection (assuming it is a nested table). I know how to verify it is nested, so that is not the problem. Once I know the number of rows, I want to number from cell(2,1) - below the header - by entering text "1. ", movedown, "2. " etc. Think I can do that if I can identify the nested table. Problem is that a primary table might have two or three nested tables in one cell. If the cursor is in nested table 2, I can use: intRowNos = Selection.Tables(1).Tables(2).Rows.Count but how do I cater for the fact it could be in Tables(2) or (1) or even (3)? |
| Tags |
| nested table |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Getting the Count formula to count all rows
|
Jennifer Murphy | Word Tables | 11 | 08-23-2016 09:37 PM |
| simple way to count rows in a table? | bkcell | Word | 4 | 03-09-2015 09:06 PM |
| copying nested if over multiple rows where one value stays fixed | charles_cat | Excel | 1 | 01-23-2015 01:30 AM |
Count rows and add blank rows accordingly
|
Hoochtheseal | Word VBA | 1 | 01-29-2013 09:23 PM |
| Nested vlookup with varable tables! | Dave Jones | Excel | 0 | 08-30-2012 09:15 AM |