Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / April 2006

Tip: Looking for answers? Try searching our database.

How to control the layout of word document

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sam - 28 Apr 2006 15:05 GMT
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 

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.