# Changing the open/close state of a cell that is hidden behind a closed parent cell

I have a subsubsection cell, inside a subsection cell, inside a section cell. Assuming all groups and subgroups are closed so that only the section cell is visible, is it possible to programmatically change the state of the subsection cell to "open" without the section cell opening?

NotebookFind (as shown below) is no use because it opens the parent cell.

NotebookFind[EvaluationNotebook[], "Subsection", All, CellStyle];
FrontEndExecute[FrontEndToken["OpenCloseGroup"]]


I'm thinking there must be a way to change the open/close state of a cell that is hidden behind a closed parent cell.

A standard approach with SelectionMove seems to work:
(

• @MichaelMcCain You need to add InputNotebook[] specification to Cells and probably to FrontEndToken too. Tell me how it went :) – Kuba Nov 28 '16 at 9:28