NextCell

NextCell[]

returns the CellObject corresponding to the cell directly below the currently evaluating cell.

NextCell[cellobj]

starts looking from the given cell.

Details and Options

  • 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.

Examples

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 "Section" style cells below this point in the notebook:

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

See Also

PreviousCell  Cells  Notebooks  SelectionMove

Introduced in 2014
(10.0)