Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.tables
|
|||
|
|||
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
Posted to microsoft.public.word.tables
|
|||
|
|||
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
Posted to microsoft.public.word.tables
|
|||
|
|||
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
Posted to microsoft.public.word.tables
|
|||
|
|||
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 |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Converting WordPerfect 12 files to Word 2003 | New Users | |||
take yet another lesson from wordperfect "reveal codes" | Microsoft Word Help | |||
Word should allow to 'divide' page by 3 or 4, not just 2 | Page Layout | |||
Converting Word Perfect forms to Word forms | Microsoft Word Help | |||
Word 2002 and Word 2003 trading default file association | Microsoft Word Help |