This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

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 that 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