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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 |