Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-18-2021, 12:44 PM
laith93 laith93 is offline Convert table of contents to table format and preserving dynamic property of fields Windows 10 Convert table of contents to table format and preserving dynamic property of fields Office 2019
Competent Performer
Convert table of contents to table format and preserving dynamic property of fields
 
Join Date: Jul 2021
Posts: 117
laith93 is on a distinguished road
Default Convert table of contents to table format and preserving dynamic property of fields

Hi,
Is there an ability to convert table of contents, tables, appendices, and figures to table format like this
43.png
I used many codes in order to reach result of above image, but it causes losing of dynamic property of fields
So how to convert table of contents to table format and preserving dynamic property of fields at the same time.
Check sample file in the attachment
Attached Images
File Type: png 44.png (10.9 KB, 30 views)
File Type: png 45.png (14.8 KB, 31 views)
File Type: png 46.png (16.3 KB, 31 views)
Attached Files
File Type: docx Sample.docx (21.3 KB, 6 views)
Reply With Quote
  #2  
Old 11-18-2021, 10:42 PM
Peterson Peterson is offline Convert table of contents to table format and preserving dynamic property of fields Windows 10 Convert table of contents to table format and preserving dynamic property of fields Office 2019
Competent Performer
 
Join Date: Jan 2017
Posts: 141
Peterson is on a distinguished road
Default

This is a really challenging formatting exercise.

The best I could come up with is to create a text box, no border, Wrap Text set to Behind Text; insert a table into the text box, adjust it to match your ToC items, then put it behind the ToC. Adjust row height for multi-line sections.

I also tried to get this to work with styles and formatting, but it's pretty much not going to work and is a total kludge. I'm attaching it for entertainment; note that I only worked on the List of Tables.

First, you have to add tabs after the colons in the in-text table titles, without which the List of Tables won't work.

Next, you have to adjust the List of Figures style to include borders, adjust white space, etc.

Add tabs, as shown in the example.

Note that I've added two "bar" tabs -- I've never used these before, but they add vertical lines. You can't control their thickness, and they are just lines, the aren't columns. You can't split a ToC/List of Tables into columns.

To get the content to fit, use find/replace and make "Table" and the colon hidden text in each item. Leave the space after "Table."

Put the cursor after the first space and add a tab; this pushes the pieces into place.

Got a title that's more than one line? You're done: there's no way deal with it and keep it a dynamic link.

Need to update the table? You have to hide everything all over again.

I understand that people have reasons for wanting what they want: maybe that's how it's always been done, or that's what they were told to do. I get that. At the same time, a table's purpose is to help the reader make sense of data, by grouping it to differentiate data types, show relationships, or simply to help the reader scan across rows or down columns. But grouping table numbers, titles, and page numbers in columns doesn't help the reader use the ToC, List of Tables, etc., nor does adding column headings. If tabular format were useful for ToCs and the like, Word would have this functionality out of the box. Perhaps a ToC in an actual table is common in certain fields or parts of the world I know nothing about, but in 15 years or so of working on technical documents, this is the first time I've seen a table of contents in an actual table.
Attached Files
File Type: docx Sample.docx (26.6 KB, 10 views)
Reply With Quote
  #3  
Old 12-09-2021, 11:00 AM
laith93 laith93 is offline Convert table of contents to table format and preserving dynamic property of fields Windows 10 Convert table of contents to table format and preserving dynamic property of fields Office 2019
Competent Performer
Convert table of contents to table format and preserving dynamic property of fields
 
Join Date: Jul 2021
Posts: 117
laith93 is on a distinguished road
Default

Quote:
Originally Posted by Peterson View Post
This is a really challenging formatting exercise.
Thank you Peterson for your reply
Really, it is hard to do it.
Reply With Quote
  #4  
Old 12-10-2021, 03:22 PM
macropod's Avatar
macropod macropod is offline Convert table of contents to table format and preserving dynamic property of fields Windows 10 Convert table of contents to table format and preserving dynamic property of fields Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

See, for example: Generate an Index or TOC as a table - Microsoft Community.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
field code, vba code, word vba

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert table of contents to table format and preserving dynamic property of fields Table of Contents and Preserving Lists chezi Word 2 07-11-2018 10:35 AM
Creating a Table of Contents in a table format Ellymoo Word 9 06-22-2017 08:15 AM
How do I create a dynamic table of contents dschrader PowerPoint 0 10-12-2015 12:38 PM
Convert table of contents to table format and preserving dynamic property of fields Add content to Dynamic/Automatic Table of Contents rosenina18 Word 3 04-14-2015 05:15 AM
Extra fields - table of contents saslotteroy Word 4 09-15-2011 01:23 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:08 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft