Wolfram Research

Function Repository Resource:

ClickedNotebook

Source Notebook

Click a notebook to get it

Contributed by: Bob Sandheinrich

ResourceFunction["ClickedNotebook"][]

gives the next selected notebook in the front end.

Details and Options

The result is a NotebookObject.
The evaluation will wait until another notebook is clicked.
Within the EvaluationNotebook, clicks are ignored.
While the evaluation is happening, a panel will include a button that can be used to select the EvaluationNotebook.

Examples

Basic Examples

Get a NotebookObject by clicking the notebook:

In[1]:=
ResourceFunction["ClickedNotebook"][]
Out[1]=

Requirements

Wolfram Language 11.3 (March 2018) or above

Resource History

License Information