SOLVED

Keep with next - if the next text is table does not work anymore

%3CLINGO-SUB%20id%3D%22lingo-sub-3263649%22%20slang%3D%22en-US%22%3EKeep%20with%20next%20-%20if%20the%20next%20text%20is%20table%20does%20not%20work%20anymore%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3263649%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%20I%20ran%20into%20an%20issue%2C%20where%20it%20does%20not%20seem%20to%20be%20possible%20to%20keep%20title%20(single%20line%20of%20text)%20with%20the%20following%20table.%20My%20table%20title%20has%20a%20separate%20style%20attached%20to%20it%20that%20uses%20%22Keep%20with%20next%22.%20This%20works%20perfectly%20if%20the%20following%20is%20another%20paragraph.%20But%20if%20what%20follows%20is%20the%20table%2C%20keep%20with%20next%20is%20not%20honored%20anymore.%20(Microsoft%20Word%20version%202202%20on%20Windows%20x64).%20Has%20anybody%20else%20ran%20into%20this%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%2C%20when%20using%20print%20preview%20-%20the%20layout%20somewhat%20breaks%20as%20if%20Word%20was%20trying%20to%20honor%20keep%20with%20next%20and%20it%20just%20keeps%20jumping%20back%20and%20forth.%20I%20can%20provide%20more%20info%20and%20pics%20if%20it%20could%20be%20of%20any%20help.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20any%20hints!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3264161%22%20slang%3D%22en-US%22%3ERe%3A%20Keep%20with%20next%20-%20if%20the%20next%20text%20is%20table%20does%20not%20work%20anymore%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3264161%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1215157%22%20target%3D%22_blank%22%3E%40Malatheon%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20a%20quick%20test%2C%20I%20observed%20nothing%20strange%20here%2C%20using%20a%20built-in%20heading%20style%20and%20a%20table%20immediately%20below%20the%20heading%20paragraph.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDid%20you%20make%20sure%20that%20there%20were%20no%20%3CEM%3Eblank%3C%2FEM%3E%20paragraphs%20between%20the%20heading%20and%20the%20first%20table%20row%3F%20Click%20the%20%C2%B6%20icon%20on%20the%20Home%20tab%20to%20view%20all%20nonprinting%20marks.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20want%20to%2C%20you%20can%20share%20a%20sample%20document%20which%20illustrates%20what%20you%20see.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi, I ran into an issue, where it does not seem to be possible to keep title (single line of text) with the following table. My table title has a separate style attached to it that uses "Keep with next". This works perfectly if the following is another paragraph. But if what follows is the table, keep with next is not honored anymore. (Microsoft Word version 2202 on Windows x64). Has anybody else ran into this?

 

Also, when using print preview - the layout somewhat breaks as if Word was trying to honor keep with next and it just keeps jumping back and forth. I can provide more info and pics if it could be of any help.

 

Thanks for any hints!

13 Replies
best response confirmed by Malatheon (Occasional Contributor)
Solution

@Malatheon 

 

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.

Hi Stefan, thanks for chipping in. I looked into it again on another machine - somehow it started working with no apparent reason. I will try with Windows 11 later today. At this moment, it started working as expected, go figure.

@Malatheon 

 

Thanks for the follow-up. I'm glad you got it sorted, in the end. 

@Stefan_Blom OK, so I re-did the test under Windows 11 (22H2 22579.1) and the "keep with next" functionality is indeed broken. Here is a short clip demonstrating the issue. The table sticks together nicely, but the title does not. (on the link the clip is not compressed to heavily like on the gif below).

https://www.screenpresso.com/=a1Otd

2022-03-24_07h51_28.gif

@Malatheon 

 

I see the issue in your clip. Can you also share a sample document in Word format? You can upload it to OneDrive or Dropbox and post a "share" link in the thread.

@Stefan_Blom 

Here is the document

Interestingly, in the online version of Word the Table title is shown on the second page, whereas at the same time, on the desktop version it is at the bottom of the first page. 

I have also created another video showing the strange behaviour, adding only gif this time, should be enough. That the Table title appears twice is not a video glitch, it really does happen.

2022-03-25_08h04_38.gif

@Malatheon 

 

In the web browser version of Word, the display is often less reliable. The reading view is more accurate. 

 

Here, I am not seeing a glitch when I open the document in the full version of Word (version 2202, Office 2021, running under Windows 11). Deleting/adding a paragraph mark on the first page will move the title + the table back and forth between the pages in the expected manner.

@Stefan_Blom 

 

yes, the same document behaves normally in the same version of MS Word on my other machine with Windows Server 2019, but shows this strange behavior under Windows 11

@Malatheon 

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

@MKnebel 

 

You can share a sample document in Word format, and someone will have a look. 

@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. 

I have now updated office 365 to version 16.0.15028.20204 and the bug is gone. The original document behaves as expected again.

@MKnebel 

 

Thanks for the follow-up. I'm glad that updating Office sorted the issue.