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.

Download

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 : May 28, 2018
Downloads : 37087
Watch this short video to learn more about this macro
Screenshot :

TOC in Current Page

Changelog :

May 28, 2018 (CF836A) - Omer Atay
Fixed an issue where the macro will fail with an error

April 24, 2018 (1B3508) - Omer Atay
Fixed an issue where the "Back to Top" links wouldn't be updated if they already exist. Also the macro will now remember the "Back to Top" setting.

December 17, 2017 (EA5512) - Omer Atay
Updated to refresh the TOC in the current page if it already exists.

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

Comments

Name
Comment
Jana - 2018-06-22
Hi, I love this feature. Could you also make the link clickable in OneNote Web?
Khalil - 2018-05-21
The TOC is being generated but none of the link actually work. Is there an issue on my end?
Omer Atay - 2018-04-24
Nate Kaemingk: Updated the macro to fix this issue. You should be able to just run the macro again and it will update the Back to Top links. Links get broken when the page copied in OneNote, there is no way around it.