Forum Discussion
Keep with next - if the next text is table does not work anymore
- Mar 23, 2022
In a quick test, I observed nothing strange here, using a built-in heading style and a table immediately below the heading paragraph.
Did you make sure that there were no blank paragraphs between the heading and the first table row? Click the ΒΆ icon on the Home tab to view all nonprinting marks.
If you want to, you can share a sample document which illustrates what you see.
I have a similar issue with my offline version of Word on a Windows 10 machine.
I have a highly structured document where every heading is followed by a table, and there are a lot of headings, which means that I now have a lot of orphaned headings at the bottom of pages. Keep with next is activated for all heading styles.
I have not worked on the document for a few weeks, but at the beginning of March everything was still OK, that is, keep with next would prevent page breaks between a heading and a table (no empty lines in between).
In the online version of Word, keep with next still seems to work, but I cannot store the file in OneDrive.
Does anyone have a solution for this?
Version information:
Office 365, 14931 20132
- Stefan_BlomMay 17, 2023MVP
For paragraphs in the main body of the document, "Keep with next" works as you would expect: it keeps the paragraph with the next paragraph. (Inline objects behave as text characters within a text paragraph, so these would also be affected by "Keep with next.")
Within a table, "Keep with next" formatting will only work if it is applied to an entire row.
- LuBailMay 17, 2023Copper Contributor
Stefan_Blom Hi! I just wanted to mention that I had the same issue as mentionned above: "keep with next" didn't seem to be working with a table, and even with normal text.
Here is what the problem was: the previous paragraph had "keep with next" activated and seemed to have precedence over the next one. By deactivating "keep with next" in the previous paragraph or table, all functioned normally (someone had overused the function in the document, it was everywhere).
I just thought that might be useful information to other users. - Stefan_BlomApr 20, 2022MVP
- MKnebelApr 20, 2022Copper ContributorI have now updated office 365 to version 16.0.15028.20204 and the bug is gone. The original document behaves as expected again.
- MKnebelApr 20, 2022Copper Contributor
Stefan_Blom : This is a sample document with a similar structure than the original: My test document.docx
We also tried to open the original document on a different team members machine and there it works as normal. Her version is more advanced than mine, therefore I hope the problem is gone after the next Office update.