TOC in Current Notebook

Description : Creates a new page with table of contents of the current notebook


TOC in Current Notebook

You need Onetastic Add-in
for OneNote to run this macro.
Download Onetastic
Author(s) : Omer Atay
Category : TOC
Last Updated : April 24, 2018
Downloads : 52437
Screenshot :

TOC in Current Notebook

Select link generation mode. In "Resilient" mode links to pages and sections will still work even if they are renamed, however this mode is slow. In "Fast" mode links will no longer work if pages or sections are renamed, but it goes much faster
Link Generation Mode
TOC Page Mode
Changelog :

April 24, 2018 (6BB92B) - Omer Atay
Now remembers the Link Generation Mode, Scope and TOC Page Mode settings each time it runs

December 27, 2016 (A0FC4A) - Omer Atay
Added options for Fast vs Resilient link mode and ability to update existing TOC page.

July 30, 2016 (2C4E75) - Omer Atay
TOC now uses indents for subpages so that it can be collapsed

June 20, 2016 (E1D14C) - Omer Atay
Re-written with the new Macro Language to take advantage of cleaner syntax and performance improvements

These versions are no longer supported:

November 07, 2014 - Omer Atay
Updated to work with sections with a template

March 26, 2013 - Omer Atay
Initial version


TJR - 2018-05-31
Just purchased and installed.  Tried TOC in Current Notebook.  Worked great.  Question about "Resilient" link mode, which I had selected.  I see this will make change to TOC if link text changed, but what if a new page is added to a section.  Should it dynamically update the TOC or can the Macro "refresh" instead of having to create a new TOC page again?
Omer Atay - 2018-05-11
kclukie: Have you installed Onetastic add-in yet? If so, see instructions at
kclukie - 2018-05-11
Trying to download TOC for notebook but getting an error message that the app cannot run on my PC.