How do I put a ToC on the same page as a table

User avatar
Peter Kinross
5StarLounger
Posts: 962
Joined: 09 Feb 2010, 00:33
Location: Patterson Lakes, Victoria, Australia

How do I put a ToC on the same page as a table

Post by Peter Kinross »

Trying to insert a ToC on the same page just in front of the first page of a multi page table.
Pressing Ctrl+Shift+Enter gives a new line, but on a new page in front of the table.
Avagr8day, regards, Peter

User avatar
StuartR
Administrator
Posts: 12577
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: How do I put a ToC on the same page as a table

Post by StuartR »

I just tried this on a newly created file with a long, empty, table and it worked fine. Do you have any paragraph formatting such as "Keep lines together" or "Keep with next"? Do you have any table row formatting such as "Allow row to break across pages"?
You do not have the required permissions to view the files attached to this post.
StuartR


User avatar
Peter Kinross
5StarLounger
Posts: 962
Joined: 09 Feb 2010, 00:33
Location: Patterson Lakes, Victoria, Australia

Re: How do I put a ToC on the same page as a table

Post by Peter Kinross »

Interesting Stuart, danged if I can get it to do that.
Keep lines together" or "Keep with next" are both on. Both set with new lines and first few table lines selected.
Allow row to break across pages is off. (Don't want rows to break).
I have the ToC split into 4 columns, maybe that is messing things up. Each row of the ToC is just a letter of the alphabet so I can navigate to points inside the table quickly.
Tried another approach - reduce the page size of the ToC to 8 cm, so that the ToC is just above the table. Unfortunately, even with 'apply to selected sections' selected, additional blank pages are inserted. I just can't win.
I have attached a version with all data deleted.
You do not have the required permissions to view the files attached to this post.
Avagr8day, regards, Peter

User avatar
Charles Kenyon
4StarLounger
Posts: 596
Joined: 10 Jan 2016, 15:56
Location: Madison, Wisconsin

Re: How do I put a ToC on the same page as a table

Post by Charles Kenyon »

Your document requires a password to open.

Without looking, though, both column changes and page size changes involve section breaks which complicates everything.

You could put a TOC inside a table cell.

User avatar
StuartR
Administrator
Posts: 12577
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: How do I put a ToC on the same page as a table

Post by StuartR »

In the first place you could try clearing all the "Keep lines together" and "Keep with next" attributes to see if this is your issue. That is a quick thing to do and if it resolves the issue then you can reapply it more carefully.
StuartR


User avatar
Peter Kinross
5StarLounger
Posts: 962
Joined: 09 Feb 2010, 00:33
Location: Patterson Lakes, Victoria, Australia

Re: How do I put a ToC on the same page as a table

Post by Peter Kinross »

Forgot about the password. Here it is without pword.
The doc initially had those items cleared, I added them to see if it would make a diff.
You do not have the required permissions to view the files attached to this post.
Avagr8day, regards, Peter

User avatar
HansV
Administrator
Posts: 78229
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: How do I put a ToC on the same page as a table

Post by HansV »

It's what StuartR suggested.
Click anywhere in the table.
With Num Lock off, press Alt+5 on the numeric keypad to select the entire table.
Click the arrow in the lower right corner of the Paragraph goup of the Home tab of the ribbon.
Activate the Line and Page Breaks tab of the Paragraph dialog.
Click the 'Keep with next' check box until it's clear.
Click OK.
Best wishes,
Hans

User avatar
Peter Kinross
5StarLounger
Posts: 962
Joined: 09 Feb 2010, 00:33
Location: Patterson Lakes, Victoria, Australia

Re: How do I put a ToC on the same page as a table

Post by Peter Kinross »

Well I'll be!
It is now exactly how I want it.
HUGE thanks to Stuart and Hans.
Any clues as to how to speed up the delay when one of the ToC lines is Ctrl clicked?
Takes about 10 seconds for it to move.
Avagr8day, regards, Peter

User avatar
HansV
Administrator
Posts: 78229
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: How do I put a ToC on the same page as a table

Post by HansV »

No idea - it's instantaneous on my PC (Windows 10 20H2, Office 2019).
Best wishes,
Hans

User avatar
Peter Kinross
5StarLounger
Posts: 962
Joined: 09 Feb 2010, 00:33
Location: Patterson Lakes, Victoria, Australia

Re: How do I put a ToC on the same page as a table

Post by Peter Kinross »

If Hans doesn't have a solution, no one does.:laugh: Guess I'm stuck :sad:.
Avagr8day, regards, Peter

User avatar
Charles Kenyon
4StarLounger
Posts: 596
Joined: 10 Jan 2016, 15:56
Location: Madison, Wisconsin

Re: How do I put a ToC on the same page as a table

Post by Charles Kenyon »

I went through the first couple of letters and changed the paragraph formatting for entire rows to remove "Keep with next" and "Keep Lines Together" settings. Works fine. Each cell in a row can have paragraph formatting that may control.
The rows with the letters still have the "Keep with next" formatting.
00 deleteme 9.png
Here is a temporary link to the changed file: deleteme Sample.docx

I also fiddled with the columns and the TOC1 style tab format.

Unless you have a strong reason to have a single table, I would recommend a separate table for each letter. Put the letters outside of the Tables.

Also, look at: Why you should use the Built-In Heading styles by Shauna Kelly
You do not have the required permissions to view the files attached to this post.

User avatar
Peter Kinross
5StarLounger
Posts: 962
Joined: 09 Feb 2010, 00:33
Location: Patterson Lakes, Victoria, Australia

Re: How do I put a ToC on the same page as a table

Post by Peter Kinross »

Thanks Charles, however as above I already got the layout going perfectly (except for the delay).
I removed all the line and page breaks from the whole doc and it made no diff to the delay.
Now to the delay: your version is instantaneous, my version of Sample.docx still takes over 10 seconds, which makes it slower than scrolling manually. I downloaded your version. I will now try to cut & paste all my data rows. Hopefully it will still be instantaneous.
Thanks again.
Avagr8day, regards, Peter

User avatar
Peter Kinross
5StarLounger
Posts: 962
Joined: 09 Feb 2010, 00:33
Location: Patterson Lakes, Victoria, Australia

Re: How do I put a ToC on the same page as a table

Post by Peter Kinross »

Dang!
Charles, I downloaded your version and when I opened it, the delay was still there. Weird as using it in your link was instantaneous.
Clearly something is wrong with my Word 2010.
Thanks anyway.
Avagr8day, regards, Peter

User avatar
Charles Kenyon
4StarLounger
Posts: 596
Joined: 10 Jan 2016, 15:56
Location: Madison, Wisconsin

Re: How do I put a ToC on the same page as a table

Post by Charles Kenyon »

My Word has been loggy of late, especially with TOCs.
Office 365.

I often have to click in a TOC, wait, then I can update or Right-Click, but the delay is noticeable.

User avatar
Peter Kinross
5StarLounger
Posts: 962
Joined: 09 Feb 2010, 00:33
Location: Patterson Lakes, Victoria, Australia

Re: How do I put a ToC on the same page as a table

Post by Peter Kinross »

Thanks Charles. Guess I'm expecting too much from my 11 year old Word 2010.
Avagr8day, regards, Peter

User avatar
Charles Kenyon
4StarLounger
Posts: 596
Joined: 10 Jan 2016, 15:56
Location: Madison, Wisconsin

Re: How do I put a ToC on the same page as a table

Post by Charles Kenyon »

Do not be in a hurry to "upgrade." IMO Word 2010 is the Word 2003 of the ribbon versions. Very responsive with a good interface. Later versions have some nice stuff. I like the collapsing text in print view, for instance, but other things are not, IMO, improvements.
  • Editor vs. Spelling Checker
    • Loss of useful Text Boundaries
      • Expansion of space taken by icons on the QAT

User avatar
Peter Kinross
5StarLounger
Posts: 962
Joined: 09 Feb 2010, 00:33
Location: Patterson Lakes, Victoria, Australia

Re: How do I put a ToC on the same page as a table

Post by Peter Kinross »

Thanks Charles, sorry for the delay, I was very busy refitting stuff to our caravan before going away for a long Easter break.
I would love to update to a later version of Office, but MicroShaft in their infinite wisdom removed some BIG features from Access that make my years of programming and improving inoperative. So I am stuck forever in the Office 2010 world.
Avagr8day, regards, Peter

User avatar
Charles Kenyon
4StarLounger
Posts: 596
Joined: 10 Jan 2016, 15:56
Location: Madison, Wisconsin

Re: How do I put a ToC on the same page as a table

Post by Charles Kenyon »

Peter Kinross wrote:
07 Apr 2021, 00:27
***
So I am stuck forever in the Office 2010 world.
Not a bad place to be.
Beats being stuck in Office 2007 or 2000. At least, in Word, you still can make use of Text Boundaries!