TOC in Current Page

Description : Creates a table of contents from heading in the current page and inserts at the top of the page. Optionally it adds "Back to Top" links to the headings.


TOC in Current Page

You need Onetastic Add-in
for OneNote to run this macro.
Download Onetastic
Author(s) : Omer Atay
Category : TOC
Last Updated : September 04, 2016
Rating :
Download(s) : 19841
Screenshot :

TOC in Current Page

Changelog :

September 04, 2016 (157AED) - Omer Atay
Now finds all the headers in the page, even if they are in a table.

August 16, 2016 (C55DB0) - Omer Atay
Re-added the option for "Back to Top" links, which was lost in the previous update.

July 30, 2016 (A20BF1) - Omer Atay
TOC now uses indents based on heading level so that it can be collapsed

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

These versions are no longer supported:
July 24, 2014 - Omer Atay
Added the option for "Back to Top" links.

March 17, 2013 - Omer Atay
Initial version


XRumerTest - 2017-05-10
Hello. And Bye.
sumanthmadivala - 2017-04-30
Please add the logic to auto-update or even manually update the TOC.
Its not there right now!!
WetHat - 2017-04-15
I just found that in the new version of the macro the problem is fixed. The faulty version of the macro was using the  QueryObjects function which does NOT return the paragraphs in document order in some cases. The newest version of the macro uses nested loops instead of QueryObjects