makes the notebook corresponding to obj be the currently selected one in the front end.


  • obj can be a NotebookObject or CellObject. If obj is a CellObject, then the notebook containing obj will be selected.
  • Setting a particular notebook to be the currently selected one typically makes it the top notebook displayed on the screen.
  • Making a notebook the currently selected one does not affect the current selection within that notebook, or within other notebooks.


open allclose all

Basic Examples  (1)

Create two notebook documents:

Make the first one the selected notebook:

Applications  (1)

Create a palette for selecting from two existing notebook windows:

Properties & Relations  (1)

SelectedNotebook gives you the notebook object for the selected notebook:

The evaluation notebook can be different from the currently selected notebook:

Introduced in 1996
Updated in 2012