A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Tables
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Are there limits to Nesting? Here's one...



 
 
Thread Tools Display Modes
  #1  
Old March 1st, 2010, 09:35 AM posted to microsoft.public.word.tables
TimvG
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  
Old March 1st, 2010, 03:28 PM posted to microsoft.public.word.tables
Suzanne S. Barnhill
external usenet poster
 
Posts: 31,786
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.




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:30 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.