SetSelectedNotebook

SetSelectedNotebook[obj]

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

Details

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

Examples

open allclose all

Basic Examples  (1)

Create two notebook documents:

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

Make the first one the selected notebook:

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

Applications  (1)

Properties & Relations  (1)

See Also

SelectedNotebook  Notebooks  WindowClickSelect

Tutorials

Introduced in 1996
(3.0)
| Updated in 2012
(9.0)