Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Move a cell and its children before or after an adjacent cell or group at the same level
ResourceFunction["CellGroupMove"][Up] moves the selected cell and its children in InputNotebook above the previous cell or group at the same level. | |
ResourceFunction["CellGroupMove"][Down] directs the movement below the next cell or group at the same level. | |
ResourceFunction["CellGroupMove"][obj,dir] moves the cell associated with the CellObject obj, or the selected cell associated with the NotebookObject obj. |


Move the next cell and its child to below the cell group after it:

Create a notebook and select its first cell:
| In[1]:= | ![]() |
Move the selected cell and its children to below the next group:
| In[2]:= |
| Out[2]= |

Create a palette to move cells up or down in the input notebook:
| In[3]:= | ![]() |

Wolfram Language 14.0 (January 2024) or above
This work is licensed under a Creative Commons Attribution 4.0 International License