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) : 23741
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


AJ - 2017-09-26
I am slowly falling in love with this. The ToC is great.
Just two minor things
a) Would love to see an option to quickly update the TOC (if I leave the ToC at the top and untouched, one click update would belovely)
b) I am starting to get very annoyed by the "Popup" that asks me about "Back to Top links". Can I set that to remember my selection somehow or not ask me every single time
Since, I find myself deleting and then recreating the ToC a fair bit on the pages that I am actively working on.

Love your work. I am actually waiting for then it prompts me so I can purchase it (I know it'll happen :-)

Omer Atay - 2017-09-15
Freddy: Please send a page that has the issue to
Freddy - 2017-09-15
On some pages the TOC can't be created. An error "The ink can't be inserted" occurs.
Can't figure out the reason. Already deleted all formats before defining the headers which do not contain ink/handwriting.