Select Done Tasks

Select all done tasks on current page for easy deleting (just hit delete key).


Author(s) : Onetastic ★, onejin
Category : Content
Last Updated : December 13, 2018
Requirements : OneNote 2010 or above
Changelog :

December 13, 2018 (A8762B) - Onetastic ★
Fixed an issue where macro will result in an error

June 19, 2016 (BE03C9) - onejin
Automatically upgraded to the new Macro Language

These versions are no longer supported:

October 08, 2014 - onejin
Initial version


Davo - 2017-05-05
Omer - thanks for the response.  I guess I can live with it - its a small hassle for what I'm trying to do
Omer Atay - 2017-04-26
Davo: This turns out to be a bug in OneNote. Macro is correctly setting those paragraphs as selected, but OneNote doesn't show them as selected. If the parent isn't selected, the child is then shown as selected, but when parent is also selected, OneNote drops selection for all children. You can reproduce this by selecting both the parent and child, and then go to Settings > Show Page XML, which would have both of them marked as selected="all", then click OK to save the page back to OneNote without any modification and OneNote will remove selection from the children, demonstrating the bug.
Davo - 2017-04-25
Omer - sorry for mispelling your name below.  In my case, I'm looking to make a macro to select all unchecked "parent" tags and all of their "children", using some of the code here (I cut all selected (my remaining) tasks and move them to a new page).  I'm running into the same problem - it won't select the children (although everything else works fine).  In my case, the "parent" wouldn't be checked unless all the children are checked.  So if a parent is unchecked, I would want to select all of the children, regardless of status.