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

Author(s) : Omer Atay
Category : TOC
Last Updated : May 28, 2018
Requirements : OneNote 2010 or above
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
Omer Atay - 2020-06-24
Melissa: OneNote for Windows 10 doesn't support addins. You would need to go back to OneNote 2016 to continue using macros
Melissa - 2020-06-23
I loved using this TOC macro in OneNote 2016.  Now I am using OneNote for Windows 10 and this TOC macro does not work in it. Does anyone know how I can get TOC to work in OneNote for Windows 10?
John - 2019-11-04
TOC removes the header numbering. Can this be added as an option?