Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-20-2018, 03:12 PM
BG56 BG56 is offline Set color of entry either TOC or Index? Windows 10 Set color of entry either TOC or Index? Office 2016
Novice
Set color of entry either TOC or Index?
 
Join Date: Oct 2018
Posts: 6
BG56 is on a distinguished road
Thumbs down Set color of entry either TOC or Index?


Hi - apologies if this is a duplicate thread. My searches for "index color" didn't turn up anything of interest. I have a document with an index and TOC. I want to color code the TOC OR index entries to indicate audience for the entry. I've tried using customer styles for the TOC with no luck (changes color of heading in body of document but not in TOC) and can find nothing guiding me on if/how I can change the color of index entries.

Any suggestions or pointers to a source on how to do this?

Thank you
Reply With Quote
  #2  
Old 10-20-2018, 11:22 PM
macropod's Avatar
macropod macropod is offline Set color of entry either TOC or Index? Windows 7 64bit Set color of entry either TOC or Index? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,365
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

To change the colour of an entry in the Table of Contents, you'd change the relevant TOC Style. For what you're describing, that would also necessitate using different Heading Styles for each intended audience.

For Index entries, you'd colour the individual XE fields' codes, then refresh the Index.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 10-21-2018, 09:10 AM
BG56 BG56 is offline Set color of entry either TOC or Index? Windows 10 Set color of entry either TOC or Index? Office 2016
Novice
Set color of entry either TOC or Index?
 
Join Date: Oct 2018
Posts: 6
BG56 is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
To change the colour of an entry in the Table of Contents, you'd change the relevant TOC Style. For what you're describing, that would also necessitate using different Heading Styles for each intended audience.

For Index entries, you'd colour the individual XE fields' codes, then refresh the Index.

Macropod - thanks for the reply.
For the TOC - I did create new heading styles for each audience (there are only 3). They were based on Heading 1 with a different color font. The font change worked in the body of the document but was not reflect in the TOC (I did remember to update the entire table).
For index - I'm not sure what "colour the individual XE fields' codes" means. I did change the font color of the XE entry in the body of the document with no luck but suspect that isn't what you mean.
Thanks again for the reply
Bennie
Reply With Quote
  #4  
Old 10-21-2018, 12:31 PM
Charles Kenyon Charles Kenyon is offline Set color of entry either TOC or Index? Windows 10 Set color of entry either TOC or Index? Office 2013
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,464
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

You do NOT base your TOC styles on Heading 1. This is going to make a mess and might even crash Word. If you mean your heading styles, it is OK. However, what Paul was talking about was the TOC styles.


Changing the formatting of your heading styles will not change the TOC (except for numbering).

See this article for directions on setting up custom TOCs.
TOC Tips and Tricks

For basics of how TOCs work:
Reply With Quote
  #5  
Old 10-21-2018, 02:29 PM
macropod's Avatar
macropod macropod is offline Set color of entry either TOC or Index? Windows 7 64bit Set color of entry either TOC or Index? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,365
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

As Charles pointed out, I advised to modify the TOC Styles, not the Heading Styles.

As for the Index, the entries are managed via XE fields, which look something like:
{XE "Entry Name"}
Simply colouring the "Entry Name" font, then refreshing the Index is all you need do.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #6  
Old 11-04-2018, 07:54 AM
BG56 BG56 is offline Set color of entry either TOC or Index? Windows 10 Set color of entry either TOC or Index? Office 2016
Novice
Set color of entry either TOC or Index?
 
Join Date: Oct 2018
Posts: 6
BG56 is on a distinguished road
Smile

Thanks for the reply.... sorry for the delay in replying. I think I wasn't clear on what I'm doing. First - I am creating a NEW style, not modifying existing styles. I get your input on breaking word. Second - I was creating a style based on Heading 1 rather than the TOC styles.



Today, I created a TOC style (TOC 1 Green) in with font color green. My challenge is getting that style incorporated into the TOC. When I look at the options for a custom TOC, I don't see the new style to incorporate into the TOC. However, I DID finally get the entry name color to show up in the index. I'll keep plugging at the TOC but the index change is a great step forward.
THANK YOU







Quote:
Originally Posted by macropod View Post
As Charles pointed out, I advised to modify the TOC Styles, not the Heading Styles.

As for the Index, the entries are managed via XE fields, which look something like:
{XE "Entry Name"}
Simply colouring the "Entry Name" font, then refreshing the Index is all you need do.
Reply With Quote
  #7  
Old 11-04-2018, 08:25 AM
Charles Kenyon Charles Kenyon is offline Set color of entry either TOC or Index? Windows 10 Set color of entry either TOC or Index? Office 2016
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,464
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Quote:
Today, I created a TOC style (TOC 1 Green) in with font color green.
You cannot create a TOC style. There are nine built in and you must modify them. Word will not use any others unless you manually apply them each time you update your TOC.

See TOC and Direct Formatting
Note that color applied to the source headings as part of the paragraph style will NOT be reflected in a TOC. It must be direct formatting.
http://wordfaqs.ssbarnhill.com/TOCTi...rectFormatting

If you are only having three levels in your TOC, assign three of the TOC styles to each target group. You can modify their appearance so that TOC 4 and TOC 7 look the same as TOC 1 except for the color, etc. Then rather than going for heading levels, use the styles. I.e., Heading 1 --> TOC 1, Heading 1 Green --> TOC 4, Heading 1 Red --> TOC 7.


This is limited to three groups of three but would be a workaround. If you have more than three and only wanted the top level in your TOC with the color, also with three levels, you could have seven groups.
Reply With Quote
  #8  
Old 11-04-2018, 08:33 AM
Charles Kenyon Charles Kenyon is offline Set color of entry either TOC or Index? Windows 10 Set color of entry either TOC or Index? Office 2016
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,464
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Another possibility would be to have separate tables of contents for your groups (and skip the color coding). You do this with bookmarks and the bookmark switch. See TOC Tips and Tricks by Suzanne Barnhill, MVP
Reply With Quote
  #9  
Old 11-04-2018, 08:43 AM
BG56 BG56 is offline Set color of entry either TOC or Index? Windows 10 Set color of entry either TOC or Index? Office 2016
Novice
Set color of entry either TOC or Index?
 
Join Date: Oct 2018
Posts: 6
BG56 is on a distinguished road
Default

Quote:
Originally Posted by Charles Kenyon View Post
Another possibility would be to have separate tables of contents for your groups (and skip the color coding). You do this with bookmarks and the bookmark switch. See TOC Tips and Tricks by Suzanne Barnhill, MVP

Charles - great idea on a TOC for each group. This is a song book and I'm color coding for Beginner, Intermediate and Advanced - that would work very well. Will give that approach a shot. THANKS
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can a I create an index in a word document where index entries control sections of the document? pfriorda Word 3 12-28-2017 08:02 PM
Get Paragraph index from bookmark starting index vince692 Word VBA 6 05-13-2016 04:51 AM
Set color of entry either TOC or Index? Macro for mark index entry for every word in a document? Jay Jay Word VBA 5 08-13-2015 03:44 PM
Skipping an Index entry philippe.delobbe Mail Merge 0 04-30-2015 05:49 AM
Options of Index Mark Entry smaria Word 1 04-22-2010 05:48 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:26 AM.


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