is an object that represents a cell in an open notebook in the front end.


  • CellObject expressions are typically generated using Cells, SelectedCells, or EvaluationCell.
  • id is an integer that gives a serial number for the cell that is unique to this front end session.
  • In StandardForm, cell objects are printed so as to indicate the current style of the cell. Clicking on the cell object will act as a hyperlink that targets that cell.
  • CellObject is useful for designating target cells for various notebook operations without altering the state of the current selection in the notebook.
  • Some notebook manipulation functions, such as NotebookRead and NotebookDelete, which operate on a notebook's current selection, also support forms using CellObject.
  • Any function that takes a NotebookSelection can also take a CellObject or a list of CellObject expressions.
  • If the cell targeted by CellObject is deleted or if its container notebook is closed, the CellObject will no longer be valid for use. Functions that attempt to use it will generally return $Failed.
  • A CellObject is permanently invalid after a notebook is closed or the cell is deleted, even if that notebook is reopened or the cell is pasted into the notebook again. Any changes that only affect the contents of the cell without deleting the cell entirely will leave the CellObject intact.


open allclose all

Basic Examples  (1)

Find the CellObject for the input cell:

Use the CellObject to target a cell for NotebookRead:

Move the selection to the contents of the cell:

Scope  (7)

There are several ways to obtain a CellObject:

Get options from a cell:

Set options on a cell:

Delete a cell:

Overwrite a cell:

Move selection to a cell:

An invalid CellObject generally causes a $Failed result:

Properties & Relations  (1)

The FullForm of a CellObject uses a unique integer to reference the cell:

Wolfram Research (2012), CellObject, Wolfram Language function, https://reference.wolfram.com/language/ref/CellObject.html.


Wolfram Research (2012), CellObject, Wolfram Language function, https://reference.wolfram.com/language/ref/CellObject.html.


@misc{reference.wolfram_2020_cellobject, author="Wolfram Research", title="{CellObject}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/CellObject.html}", note=[Accessed: 28-February-2021 ]}


@online{reference.wolfram_2020_cellobject, organization={Wolfram Research}, title={CellObject}, year={2012}, url={https://reference.wolfram.com/language/ref/CellObject.html}, note=[Accessed: 28-February-2021 ]}


Wolfram Language. 2012. "CellObject." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CellObject.html.


Wolfram Language. (2012). CellObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CellObject.html