ToC given different font when updated

jmt356
SilverLounger
Posts: 2389
Joined: 28 Mar 2010, 01:49

ToC given different font when updated

Post by jmt356 »

Whenever I update my ToC, the font is changed from Times New Roman to Verdana. I need to manually select it and then press ctrl + spacebar for it to revert to Times New Roman. Is it possible to disable whatever is causing the font to change upon update?
Regards,

JMT

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

Re: ToC given different font when updated

Post by HansV »

Have the headings (Heading 1 etc.) on which the TOC is based been formatted manually as Verdana?
Best wishes,
Hans

jmt356
SilverLounger
Posts: 2389
Joined: 28 Mar 2010, 01:49

Re: ToC given different font when updated

Post by jmt356 »

Both the Latin text fonts and the complex scripts of the definitions of the styles that appear in the ToC are
are set to Times New Roman and they have not been manually altered.
Regards,

JMT

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

Re: ToC given different font when updated

Post by HansV »

Mysterious.

You could create a macro:

Code: Select all

Sub UpdateTOC()
    With ActiveDocument.TablesOfContents(1)
        .Update
        .Range.Font.Reset
    End With
End Sub
and run it when you want to update the TOC. It will update the TOC, then reset the font.
Best wishes,
Hans

jmt356
SilverLounger
Posts: 2389
Joined: 28 Mar 2010, 01:49

Re: ToC given different font when updated

Post by jmt356 »

Word may be confused because in Normal.dot, the ToC style is set to Arial. In this document, I have modified the style such that the ToC appear as Times New Roman, but perhaps somehow the underlying Normal.dot definitions are interfering.
Regards,

JMT

jmt356
SilverLounger
Posts: 2389
Joined: 28 Mar 2010, 01:49

Re: ToC given different font when updated

Post by jmt356 »

This problem continues for me. Hans, are you suggesting that I run the above macro in lieu of updating the ToC using F9 or in addition to updating the ToC using F9?
Regards,

JMT

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

Re: ToC given different font when updated

Post by HansV »

Since the macro updates the TOC, you can run it instead of pressing F9.
Best wishes,
Hans

EricFletcher
NewLounger
Posts: 1
Joined: 29 May 2013, 12:46

Re: ToC given different font when updated

Post by EricFletcher »

Have you examined the font defined within the TOC styles? Word automatically assigns TOC 1 to content tagged with Heading 1 (or more accurately, to paragraph level 1); TOC 2 to Heading 2 content; etc.

Use Ctrl-Shift-Alt-S to bring up the Styles dialog and scroll to select TOC 1. (If you don't see it listed, click "Options" and alter the style pane options to show all styles and sort them alphabetically.) Right-click on the style name and choose Modify Style... to display a dialog that lets you see the formatting defined for the style. If you see Verdana, change it to what you want. This should fix the problem.