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 : April 24, 2018
Downloads : 37158
Watch this short video to learn more about this macro
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 :

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

July 21, 2017 (84A010) - Omer Atay
Fixed an issue where TOC links in Fast Mode would not work.

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


Ellie - 2018-01-07
Just used this one, today, and it was SO HELPFUL!!
I had to switch pc's and had made multiple backups of my notebooks over the last weeks and am totally paranoid that I'm going to loose that one little scrap of a note that didn't get copied, for one reason or another.
It worked!
I used this on 2 seemingly identical notebooks, found the one with the info I needed and discarded the unfinished one!
Thanks, Omar!
This macro saved me lots of time and effort!
Sparks In Texas - 2017-10-21
Love this feature. Makes it so much easier to navigate a long document.

Just wish I could automate the "Headings" feature.  Is there anyway to do a find/replace so that a tag or a bit of text is replaced with a Heading?

I just can't get my fingers around Ctrl-Alt-1 when I'm typing to add in headings
Omer Atay - 2017-10-02
Bronwyn/Dawid79: Use this: