Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-09-2017, 01:09 AM
NevilleT NevilleT is offline Nested tables. Count rows Windows 7 64bit Nested tables. Count rows Office 2003
Novice
Nested tables. Count rows
 
Join Date: Mar 2015
Posts: 29
NevilleT is on a distinguished road
Default Nested tables. Count rows

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)?
Reply With Quote
 

Tags
nested table

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nested tables. Count rows 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
Nested tables. Count rows 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

Other Forums: Access Forums

All times are GMT -7. The time now is 06:31 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft