Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-06-2021, 02:59 AM
Marcia's Avatar
Marcia Marcia is offline How to save formatting (switches) in Table of Contents Windows 7 32bit How to save formatting (switches) in Table of Contents Office 2013
Expert
How to save formatting (switches) in Table of Contents
 
Join Date: May 2018
Location: Philippines
Posts: 527
Marcia has a spectacular aura aboutMarcia has a spectacular aura aboutMarcia has a spectacular aura about
Default How to save formatting (switches) in Table of Contents

Hi. In a Table of Contents, the page numbers of some headings were omitted through the n\ switch. My problem is that when I open the saved document, the n switch is no longer part the format. How do I save the no-page numbers in the selected headings?


Thank you.
Reply With Quote
  #2  
Old 04-06-2021, 03:25 AM
macropod's Avatar
macropod macropod is offline How to save formatting (switches) in Table of Contents Windows 10 How to save formatting (switches) in Table of Contents Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
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

What do you see where the Table of Contents should be when you open the document and press Alt-F9?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 04-06-2021, 05:49 AM
Marcia's Avatar
Marcia Marcia is offline How to save formatting (switches) in Table of Contents Windows 7 32bit How to save formatting (switches) in Table of Contents Office 2013
Expert
How to save formatting (switches) in Table of Contents
 
Join Date: May 2018
Location: Philippines
Posts: 527
Marcia has a spectacular aura aboutMarcia has a spectacular aura aboutMarcia has a spectacular aura about
Default

When I press Alt F9, I see {TOC\o"1-6"\h\z\u}.
Reply With Quote
  #4  
Old 04-06-2021, 06:01 AM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline How to save formatting (switches) in Table of Contents Windows 10 How to save formatting (switches) in Table of Contents Office 2019
Moderator
 
Join Date: Aug 2011
Posts: 3,902
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

Any switches present when you last saved the document should also be there the next time you open it. Display the field code (as Paul suggested).

On the other hand, if you want to re-use a particular TOC, including any switches, you can save it as an AutoText entry.
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #5  
Old 04-06-2021, 07:21 AM
Marcia's Avatar
Marcia Marcia is offline How to save formatting (switches) in Table of Contents Windows 7 32bit How to save formatting (switches) in Table of Contents Office 2013
Expert
How to save formatting (switches) in Table of Contents
 
Join Date: May 2018
Location: Philippines
Posts: 527
Marcia has a spectacular aura aboutMarcia has a spectacular aura aboutMarcia has a spectacular aura about
Default

Thank you Paul, Stefan. I saved the document with the code displayed and it did the trick, the n switch is still there. In my previous TOC, I did the formatting just before printing so I wouldn't repeat it everytime I open the TOC.
Reply With Quote
  #6  
Old 04-06-2021, 09:39 AM
Charles Kenyon Charles Kenyon is offline How to save formatting (switches) in Table of Contents Windows 10 How to save formatting (switches) in Table of Contents Office 2019
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,124
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:
Originally Posted by Stefan Blom View Post
***

On the other hand, if you want to re-use a particular TOC, including any switches, you can save it as an AutoText entry.

You can also save to the TOC gallery so that it will show up under Insert Table of Contents.
Reply With Quote
  #7  
Old 04-06-2021, 10:12 AM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline How to save formatting (switches) in Table of Contents Windows 10 How to save formatting (switches) in Table of Contents Office 2019
Moderator
 
Join Date: Aug 2011
Posts: 3,902
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

Quote:
Originally Posted by Charles Kenyon View Post
You can also save to the TOC gallery so that it will show up under Insert Table of Contents.
Indeed. I wrote "AutoText" but maybe I should have suggested creating a Building Block of the "Table of Contents" type. :-)
Attached Images
File Type: png buildingBlockDialogBox.PNG (6.0 KB, 11 views)
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #8  
Old 04-06-2021, 11:13 AM
Charles Kenyon Charles Kenyon is offline How to save formatting (switches) in Table of Contents Windows 10 How to save formatting (switches) in Table of Contents Office 2019
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,124
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 way that gets to the same place is to use the "Save to Table of Contents Gallery..." command in the Table of Contents drop-down.
Reply With Quote
  #9  
Old 04-06-2021, 12:50 PM
Marcia's Avatar
Marcia Marcia is offline How to save formatting (switches) in Table of Contents Windows 7 32bit How to save formatting (switches) in Table of Contents Office 2013
Expert
How to save formatting (switches) in Table of Contents
 
Join Date: May 2018
Location: Philippines
Posts: 527
Marcia has a spectacular aura aboutMarcia has a spectacular aura aboutMarcia has a spectacular aura about
Default

Thank you Stefan and Charles. My computer is having a system malfunction. I will try your suggestions when Windows goes back running to normal.
Reply With Quote
  #10  
Old 04-06-2021, 01:26 PM
Charles Kenyon Charles Kenyon is offline How to save formatting (switches) in Table of Contents Windows 10 How to save formatting (switches) in Table of Contents Office 2019
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,124
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:
Originally Posted by Marcia View Post
Thank you Stefan and Charles. My computer is having a system malfunction. I will try your suggestions when Windows goes back running to normal.
I hope it is soon. My experience is that my computer starts acting flaky when Windows thinks it wants to update.
Reply With Quote
  #11  
Old 04-06-2021, 01:30 PM
macropod's Avatar
macropod macropod is offline How to save formatting (switches) in Table of Contents Windows 10 How to save formatting (switches) in Table of Contents Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
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

Quote:
Originally Posted by Marcia View Post
I saved the document with the code displayed and it did the trick, the n switch is still there.
It makes no difference to Word whether the field code is displayed when you do the save. The field code, including the switches will be saved along with the rest of the document.
Quote:
Originally Posted by Marcia View Post
In my previous TOC, I did the formatting just before printing so I wouldn't repeat it everytime I open the TOC.
That suggests you weren't saving the document after doing your formatting.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #12  
Old 04-06-2021, 05:28 PM
Marcia's Avatar
Marcia Marcia is offline How to save formatting (switches) in Table of Contents Windows 7 32bit How to save formatting (switches) in Table of Contents Office 2013
Expert
How to save formatting (switches) in Table of Contents
 
Join Date: May 2018
Location: Philippines
Posts: 527
Marcia has a spectacular aura aboutMarcia has a spectacular aura aboutMarcia has a spectacular aura about
Default

I did not know until this thread that the TOC could be separately saved. Thank you.
Reply With Quote
  #13  
Old 04-06-2021, 05:32 PM
macropod's Avatar
macropod macropod is offline How to save formatting (switches) in Table of Contents Windows 10 How to save formatting (switches) in Table of Contents Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
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

Quote:
Originally Posted by Marcia View Post
I did not know until this thread that the TOC could be separately saved.
It can't. There is a way of generating a TOC in a separate document, but that entails using an RD field as well as the TOC field.

What Charles & Stefan described in posts 6-8 is a method of saving the TOC field code for re-use. The TOC thus generated will relate to the document to which it is applied; it will not regenerate the original TOC entries.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #14  
Old 04-06-2021, 05:47 PM
Marcia's Avatar
Marcia Marcia is offline How to save formatting (switches) in Table of Contents Windows 7 32bit How to save formatting (switches) in Table of Contents Office 2013
Expert
How to save formatting (switches) in Table of Contents
 
Join Date: May 2018
Location: Philippines
Posts: 527
Marcia has a spectacular aura aboutMarcia has a spectacular aura aboutMarcia has a spectacular aura about
Default

Ah okay. I searched and followed the instructions on how to save in the TOC gallery but I stopped short of saving because I'm still many years away from senelity to forget the particular field code for omitting page numbers in specific levels h h.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to save formatting (switches) in Table of Contents Help formatting my table of contents! KristianSilva Word 5 04-13-2020 08:20 AM
Table of Contents, Formatting Colours BarnabyS Word 1 08-20-2018 10:22 AM
Table of Contents does not reflect formatting Lady_Jane Word 3 11-29-2012 03:31 PM
How to save formatting (switches) in Table of Contents Table of contents after formatting! erika Word 1 06-10-2009 10:40 AM
Table of Contents Formatting Rick5150 Word 1 03-16-2009 11:10 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:21 PM.


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