Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.tables
TimvG TimvG is offline
external usenet poster
 
Posts: 12
Default Are there limits to Nesting? Here's one...

What limits are there to nesting tables in Word? And what problems
are encountered as you nest deeply?

I'm developing an "application" that involves lots of tables within
tables within tables within.... In general I'm really impressed with
how well Word handles deeply nested table structures. Of course,
performance does suffer as nesting gets deeper. But I haven't found
any "hard" limit to how many levels of nesting you can have.

One problem I *have* encountered is this: apparently, you can't set
the font as hidden/unhidden when there are ten or more nested tables.
To explain: In my application, it is often useful to hide the
"children" (nested tables) of a table. A very handy trick for doing
this is to simply set the font of the nested tables to hidden; e.g.:

Selection.Cells(1).Tables(1).Range.Font.Hidden = True

However, if you try this when Tables(1) itself contains 9 or more
tables, then you get an error. If you ask Word to tell you the
"hidden" status of the topmost nested table

msgbox Selection.Cells(1).Tables(1).Range.Font.Hidden it returns
"9999999" - i.e. apparently it just can't calculate the status.

I'm interested whether anyone else

(a) has encountered the same problem, or perhaps has a fix/workaround

(b) more generally, knows of any other limits to nesting, or problems
you encounter when doing lots of nesting.


  #2   Report Post  
Posted to microsoft.public.word.tables
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default Are there limits to Nesting? Here's one...

There seems to be a limit of nine on other things: outline numbering levels,
MRU list (Word 2003 and earlier), files on the Work menu. This suggests some
built-in limitation of the code.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

"TimvG" wrote in message
...
What limits are there to nesting tables in Word? And what problems
are encountered as you nest deeply?

I'm developing an "application" that involves lots of tables within
tables within tables within.... In general I'm really impressed with
how well Word handles deeply nested table structures. Of course,
performance does suffer as nesting gets deeper. But I haven't found
any "hard" limit to how many levels of nesting you can have.

One problem I *have* encountered is this: apparently, you can't set
the font as hidden/unhidden when there are ten or more nested tables.
To explain: In my application, it is often useful to hide the
"children" (nested tables) of a table. A very handy trick for doing
this is to simply set the font of the nested tables to hidden; e.g.:

Selection.Cells(1).Tables(1).Range.Font.Hidden = True

However, if you try this when Tables(1) itself contains 9 or more
tables, then you get an error. If you ask Word to tell you the
"hidden" status of the topmost nested table

msgbox Selection.Cells(1).Tables(1).Range.Font.Hidden it returns
"9999999" - i.e. apparently it just can't calculate the status.

I'm interested whether anyone else

(a) has encountered the same problem, or perhaps has a fix/workaround

(b) more generally, knows of any other limits to nesting, or problems
you encounter when doing lots of nesting.




Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Nesting Fields - Placeholders joey Mailmerge 1 September 10th 08 09:01 PM
Field Nesting Qiwen Microsoft Word Help 4 March 20th 08 02:28 PM
Nesting Qiwen Microsoft Word Help 0 March 20th 08 11:07 AM
pasting tables causes nesting CAJ Tables 4 December 12th 05 09:11 AM
Nesting IF statments in BARCODE funtion.. S Stone Mailmerge 0 December 30th 04 01:53 AM


All times are GMT +1. The time now is 01:11 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"