Collapse Pages in Current Section Group

Collapse all pages in the current Section Group


Author(s) : Onetastic ★, TheDanielDoyle
Category : Navigation
Last Updated : December 13, 2020
Requirements : OneNote 2010 or above
Changelog :

December 13, 2020 (5CB288) - Onetastic ★
Fixed an issue which caused the macro to fail with "This page is read-only" error

June 19, 2016 (DEFE59) - TheDanielDoyle
Automatically upgraded to the new Macro Language

These versions are no longer supported:

September 10, 2014 - TheDanielDoyle
Initial version


Omer Atay - 2017-04-05
Dan: This is not possible
Dan - 2017-04-05
Hi Omer,

I am trying to expand and collapse section groups  - is this availible
<ForEach var="oSectionGroup">
    <Array>QueryObjects("SectionGroup", GetCurrentNotebook())</Array>
      <Condition>!($oSection.Collapsed == true)</Condition>

i couldnt find in documentation
Burt Harris - 2015-07-31
The term SectionGroup doesn't tell me what this does.  

I'm looking for a way to combine all the sub-pages under one page into a single page.