Hi,
I encountered one problem in word document. Here it is.
I have a word document which consists of many tables. Based on some
requirement, If I delete some tables or some rows in specific table in
this document using VBA, the layout of this document will change. Fox
example, sometimes the table will split into two pages. I don't wanna
see this happen. I think I can leave some parts of one page blank, this
can make the layout of the whole document more elegant. Is there any
good methods to control the layout of the whole document using VBA?
I have one idea, first I judge weather this page have enough space to
contain next table, if so, move next table from next page to this page;
if not, make the remaining part of this page blank(in this manner, I
can keep next table in next page). I am not sure I can realize this
method using VBA? Could you give me some hints? or other good ideas to
slove this problem? Thank you in advance!!!
Best Regards
Sam
Jean-Guy Marcil - 28 Apr 2006 15:39 GMT
sam was telling us:
sam nous racontait que :
> Hi,
>
[quoted text clipped - 15 lines]
> realize this method using VBA? Could you give me some hints? or other
> good ideas to slove this problem? Thank you in advance!!!
If you set all paragraphs of all tables (except those in the last row) to
"Keep with next" the table will never be split on two pages, except it is
too long.

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org