Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Counting Rows
How do I count the nunber of rows in a table, rather than doing so manually, which can take quite a bit of time? What if I just want to count the number of rows in a section of the table? thank you. |
#2
|
|||
|
|||
Hi Nan,
like this: MsgBox Selection.Tables(1).Rows.Count MsgBox Selection.Rows.Count not to speak of a lot of possibles complications. -- Greetings from Bavaria, Germany Helmut Weber, MVP WordVBA Win XP, Office 2003 "red.sys" & Chr$(64) & "t-online.de" |
#3
|
|||
|
|||
Helmut's macro will do what you want. For a macro that will do a bit more,
get the Table Cell Helper macro from http://word.mvps.org/FAQs/AppErrors/...eIncorrect.htm -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA Word MVP FAQ site: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. "Nan Ros" wrote in message ... How do I count the nunber of rows in a table, rather than doing so manually, which can take quite a bit of time? What if I just want to count the number of rows in a section of the table? thank you. |
#4
|
|||
|
|||
Thank you both for replying!
"Nan Ros" wrote: How do I count the nunber of rows in a table, rather than doing so manually, which can take quite a bit of time? What if I just want to count the number of rows in a section of the table? thank you. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Mail Merge with duplicate rows of data | Mailmerge | |||
counting rows of a given table | Tables | |||
How do I get multiple Excel rows merged into Word document when .. | Mailmerge | |||
2002 Word Table Rows | Tables | |||
Excel Link: Adding rows in Excel does not add cells in Word | Tables |