Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Notebooks and Documents > Low-Level Notebook Programming >

SetSelectedNotebook

SetSelectedNotebook[notebook]
makes the specified notebook be the currently selected one in the front end.
  • 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.
Create two notebook documents:
Make the first one the selected notebook:
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]=
Create a palette for selecting from two existing notebook windows:
SelectedNotebook gives you the notebook object for the selected notebook:
The evaluation notebook can be different from the currently selected notebook:
New in 3
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team