How to control the layout of word document

S

sam

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
 
J

Jean-Guy Marcil

sam was telling us:
sam nous racontait que :
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!!!

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.

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top