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 >

NotebookClose

NotebookClose[notebook]
closes the notebook corresponding to the specified notebook object.
NotebookClose[]
closes the current evaluation notebook.
  • NotebookClose will make a notebook disappear from your screen, and will invalidate all notebook objects which refer to that notebook.
Create a notebook window:
Close the notebook without saving:
Create a notebook window:
In[1]:=
Click for copyable input
Close the notebook without saving:
In[2]:=
Click for copyable input
Create a palette button that writes to the input notebook and then closes the palette:
Use NotebookSave when you want to save changes before closing a notebook:
NotebookOpen opens the notebook from the file:
New in 3 | Last modified in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team