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  

AllowPageBreaks setting forgotten in Word 2003



 
 
Thread Tools Display Modes
  #1  
Old April 24th, 2006, 11:36 AM posted to microsoft.public.word.tables
external usenet poster
 
Posts: n/a
Default AllowPageBreaks setting forgotten in Word 2003

Try this:

Create a table with at least two rows near the bottom of a page, such that
the table spans the page break.

Then run this macro:

Sub SetTableProps()
Selection.Tables(1).AllowPageBreaks = False
End Sub

The table is no longer split across the page break. Fine.

Now save the document, close it, and open it again.

AllowPageBreaks is now True, and the table is split across the page break
again!

Am I doing something wrong, or is this a bug?

Cheers,

Brian


  #2  
Old April 24th, 2006, 01:21 PM posted to microsoft.public.word.tables
external usenet poster
 
Posts: n/a
Default AllowPageBreaks setting forgotten in Word 2003

Hi Brian,

Try this one:

Sub SetTableProps()
Selection.Tables(1).Rows.AllowBreakAcrossPages = False
End Sub

Good luck,
Cooz
--
PS: If this is a satisfying answer to your question and you're logged in via
the Microsoft site, please click Yes to "Did this post answer the question?".
Thanks.


"Brian Nixon" wrote:

Try this:

Create a table with at least two rows near the bottom of a page, such that
the table spans the page break.

Then run this macro:

Sub SetTableProps()
Selection.Tables(1).AllowPageBreaks = False
End Sub

The table is no longer split across the page break. Fine.

Now save the document, close it, and open it again.

AllowPageBreaks is now True, and the table is split across the page break
again!

Am I doing something wrong, or is this a bug?

Cheers,

Brian



  #3  
Old April 24th, 2006, 02:51 PM posted to microsoft.public.word.tables
external usenet poster
 
Posts: n/a
Default AllowPageBreaks setting forgotten in Word 2003

"Cooz" wrote:

Try this one:

Sub SetTableProps()
Selection.Tables(1).Rows.AllowBreakAcrossPages = False
End Sub



That stops page breaks being inserted _within_ rows but not _between_
them. It corresponds to the option in the "Table Properties" dialog
box - "Rows" tab - "Options" section - "Allow row to break across
pages" setting. It does survive the document being closed and
reopened, though.

Interestingly, there is no option in the dialog box that corresponds
to the Table.AllowPageBreaks property. Maybe that's why it's not
saved with the document?

I can achieve the effect I want by using your suggestion *and*
applying "Keep with next" to all the paragraphs in the table (except
those in the last row). It's not ideal, though.

I still think the lack of persistence of Table.AllowPageBreaks is a
bug. Is there a way to report things like this to Microsoft?

Cheers,

Brian


  #4  
Old April 24th, 2006, 03:18 PM posted to microsoft.public.word.tables
external usenet poster
 
Posts: n/a
Default AllowPageBreaks setting forgotten in Word 2003

Hi Brian,

Well, you have a workaround at least.

You can make suggestions to Microsoft via the Microsoft Word communities site.
http://www.microsoft.com/office/comm...&lang=en&cr=US
Check out the options under the New-button.

Cooz



"Brian Nixon" wrote:

"Cooz" wrote:

Try this one:

Sub SetTableProps()
Selection.Tables(1).Rows.AllowBreakAcrossPages = False
End Sub



That stops page breaks being inserted _within_ rows but not _between_
them. It corresponds to the option in the "Table Properties" dialog
box - "Rows" tab - "Options" section - "Allow row to break across
pages" setting. It does survive the document being closed and
reopened, though.

Interestingly, there is no option in the dialog box that corresponds
to the Table.AllowPageBreaks property. Maybe that's why it's not
saved with the document?

I can achieve the effect I want by using your suggestion *and*
applying "Keep with next" to all the paragraphs in the table (except
those in the last row). It's not ideal, though.

I still think the lack of persistence of Table.AllowPageBreaks is a
bug. Is there a way to report things like this to Microsoft?

Cheers,

Brian



 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Word should allow to 'divide' page by 3 or 4, not just 2 CandasK Page Layout 2 February 28th, 2006 10:16 PM
WP merge file to Word sstires Tables 4 February 14th, 2006 06:26 PM
Word 97 in Windows XP to maintain formatting Charlie''s Word VBA questions General Discussion 21 October 24th, 2005 09:49 PM
How do I create a Word form like corel WP merge documents? dlee_at_mmsgov General Discussion 2 October 8th, 2005 06:29 AM
Office 2003 installation problem, log file attached.... Ryan Setup, Installing & Configuration 0 January 20th, 2005 06:57 PM


All times are GMT +1. The time now is 02:21 AM.


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