Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-01-2024, 08:24 PM
RRB's Avatar
RRB RRB is offline TOC field question Windows 11 TOC field question Office 2021
Susan Flamingo
TOC field question
 
Join Date: May 2014
Location: The Holy City of Jerusalem
Posts: 263
RRB is on a distinguished road
Default TOC field question

First of all, I want to express my extreme gratitude to all those who have been so helpful here. Thank you.



I want to insert a TOC Field with entries based on TC fields (this I know how to do) but between each entry, there is a separator "*" and nothing else, and with no page number and no CRLF after the entries, so the whole thing will be one continuous paragraph:

entry1*entry2*entry3*

etc.
I tried playing with the switches with no success

TIA

Susan
Reply With Quote
  #2  
Old 02-01-2024, 09:41 PM
Guessed's Avatar
Guessed Guessed is offline TOC field question Windows 10 TOC field question Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,977
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Hmm, that is not standard TOC behaviour so we need to get creative. This is a bit labour intensive so I would leave this until the edits have ceased.

I would firstly add a switch to the TOC to hide the page numbers. If you add \n to the TOC field, it won't show the page numbers or the tab that spaces them out. Then, after you update the TOC to show all the entries on their own paragraph, you can select the resulting TOC and do a find/replace to replace the paragraph marks with your * separator.
Find ^p
Replace with *

I would then lock the field so it doesn't update back to the paragraph version accidently.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #3  
Old 02-01-2024, 09:48 PM
RRB's Avatar
RRB RRB is offline TOC field question Windows 11 TOC field question Office 2021
Susan Flamingo
TOC field question
 
Join Date: May 2014
Location: The Holy City of Jerusalem
Posts: 263
RRB is on a distinguished road
Default

Tried it and works great.
Thank you!!
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
TOC field question Master Directory with dynamic field question??? MarcusB but Word 1 04-28-2021 06:04 PM
TOC field question MS WORD 2007 - Content Control versus Text Form Field question chamdan Word VBA 2 11-12-2013 09:51 PM
TOC field question Date/Time Field Autopopulation Question Dendalee Word 3 10-26-2012 06:37 AM
"To:" field autofill question hcits Outlook 4 10-13-2011 12:10 PM
field code question bordercollie10 Mail Merge 3 10-15-2009 07:55 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:16 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