TOC in Current Section

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


TOC in Current Section

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) : 22604
Screenshot :

TOC in Current Section

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 (F62144) - Omer Atay
Added options for Fast vs Resilient link mode and ability to update existing TOC page.

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

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

These versions are no longer supported:
March 10, 2013 - Omer Atay
Initial version


Dawid79 - 2016-11-15
very useful, although it does not work for Section Group. If I have subsections in my main section then I can not do TOC for all the subsections.
Omer Atay - 2016-11-03
amazou16: That would require macro to read contents of all pages, which will take significantly longer. Macros currently doesn't support anything like auto-updating a page when some other page changes. Contrary to what it seems, it is quite a complicated problem to solve.
amozu16 - 2016-11-03
This is very useful, but could you modify it to include the different level headers under a page, and also to auto update. Thank you