returns a list of CellObject expressions corresponding to the currently selected cells in notebook.


returns the currently selected cells in the notebook in which this function is being evaluated.

Details and Options


open allclose all

Basic Examples  (3)

Return a given selected cell:

Return an empty list if no cell is selected:

Return selected cells of a given notebook:

Options  (1)

AllowInlineCells  (1)

By default, SelectedCells returns selected inline cells, such as this one with the style "Output2":

AllowInlineCells->False causes the outermost CellObject to be returned instead:

Introduced in 2014