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 : December 27, 2016
Rating :
Download(s) : 31417
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 :

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


TonyW - 2017-02-26
A comment on this macro, not a problem.

If using the Notebook ToC macro while password-protected pages are open, make sure you don't include sensitive material within the page TITLES, as these page titles persist even when the protected pages are not open - e.g. on opening the Notebook later.

Omer Atay - 2017-01-04
Rasim bir: Please use the TOC in Current Section macro for this
rasim bir - 2017-01-04
I run TOC macro in a section. My purpose is to create TOC including pages of just section.
But it creates TOC, whole pages in a book but not of a section.
I have onenote 2016
"link generation mode :Fast"
Scope: pages
Toc Page mode Create new toc page"

any iadea to fix it?