Tag Summary for Specific Tag

Description : Creates a tag summary page for a specific tag. Up to three tags can be specified to find paragraphs that contain all those tags together


Tag Summary for Specific Tag

You need Onetastic Add-in
for OneNote to run this macro.
Download Onetastic
Author(s) : Omer Atay, neil
Category : Tags
Last Updated : December 17, 2017
Requirements : OneNote 2010 or above
Screenshot :

Tag Summary for Specific Tag

Find paragraphs that has all or at least one of the following tags (see option below). Leave Tag 2 and Tag 3 empty if you only want to search for a single tag.
Tag 1
Tag 2
Tag 3
Find paragraphs that have
Sort by
Changelog :

December 17, 2017 (2F8E88) - Omer Atay
Updated to skip deleted pages and display Section names when sorting by Page

September 05, 2017 (D02848) - neil
This is a bug fix to the existing (and great!) macro. I found in certain cases the macro would not correctly list out 'unchecked' (or checked) tags, because of a logic error. If the To Do tag was the last tag in the paragraph it would be OK, but it would not work otherwise. Previously the 'completed' status was only checked on the last tag. I created a $completed variable which looks in the available tags for a "To Do" tag and its completed status. This is used to decide if the paragraph should be included or not.

May 24, 2017 (39440B) - Omer Atay
Added an option to find paragraphs that have at least one of the specified tags (as opposed to having all of the specified tags at the same time)

December 25, 2016 (6ED659) - Omer Atay
This macro can now search up to three tags to find paragraphs that have all of the given tags. Also the tag name is now free form text box so that custom tags or tags in other languages can be searched.

December 23, 2016 (FEFE91) - Omer Atay
Updated to look for every tag on a paragraph in case it has multiple tags. Previously it only used the first tag on a paragraph.

October 27, 2016 (E53965) - Omer Atay
Updated with two new options: Sort by containing page vs. tag creation date, and filter by all, checked or unchecked tags only. The results are grouped under page or tag creation date based on sort by value.

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

These versions are no longer supported:

January 09, 2014 - Omer Atay
Initial version


Jay - 2019-01-10
It would be great if we had the ability to select which Notebook, section group, section, and pages we wanted the summary to look through. I want to compile 2 notebooks worth of TO-DO tags but there isn't a great way to do it now. I either run it by all of the notebooks (which typically causes it to crash) or I run them by the individual sections groups and then copy and paste from each group into one master page. Not sure how feasible that is.
LOOregano2 - 2018-08-13
I am running this macro, but it is showing both checked and non-checked items.  I do not know why.  All items are on a single OneNote page, in one notebook.  I don't know what other info would be pertinent, so please ask if I  can provide anything else to help you fix this macro.
Thanks, Lawrence
asandoval - 2018-06-13
When I run this macro I only get a list of all meeting attendees and not the list of the To Do's tag which is what the macro is intended to do, am I doing something wrong?