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
Mark - 2020-09-08
I am running OneNote 2016 on desktop and TOC in Current Page is not responding, please fix thank you!
Wayne The IT Guy - 2020-09-08
There seems to be an issue with the TOC in Current Page.
The links created only works on the desktop version.  It does not work on the iOS version.
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