NextCell

NextCell[]
returns the CellObject corresponding to the cell directly below the currently evaluating cell.

NextCell[cellobj]
starts looking from the given cell.

DetailsDetails

  • The evaluation of NextCell will not result in the selection or insertion point changing position.
  • If the requested cell is not available, NextCell will return None.
  • NextCell supports all the same options as Cells.

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Get the CellObject for the next cell:

In[1]:=
Click for copyable input
Out[1]=

Read the cell after this one into the kernel:

In[1]:=
Click for copyable input
Out[1]=

There are no style cells below this point in the notebook:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2014
(10.0)