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 / July 2005

Tip: Looking for answers? Try searching our database.

BreakPage

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Grigoriy - 26 Jul 2005 13:17 GMT
I greet all

I form in the macro table and I should make, so that several in a row going
table rows would not be transferred
(break row) to another page and they were located together on
one sheet.
As to make this?.

Signature

Grigoriy Chelh
chech@aonord.donetsk.ua
icq:118106001

Chuck Henrich - 26 Jul 2005 14:15 GMT
You need to apply .AllowBreakAcrossPages=False and
.ParagraphFormat.KeepWithNext = True to the relevant rows.

The following is sample code, you'd need to specify your table/range
according to your needs.  You could also use a selection to do what you want.

Dim rngRange As Range

With ActiveDocument
   .Tables(1).Rows(4).AllowBreakAcrossPages = False
   Set rngRange = .Tables(1).Rows(4).Range
   rngRange.ParagraphFormat.KeepWithNext = True
End With

HTH
Signature

Chuck Henrich
www.ProductivityApps.com

> I greet all
>
[quoted text clipped - 3 lines]
> one sheet.
> As to make this?.
 
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.