represents the current selection in the current evaluation notebook in the front end.
represents the current selection associated with the open notebook nb.


NotebookSelection
represents the current selection in the current evaluation notebook in the front end.
represents the current selection associated with the open notebook nb.
Details

- NotebookSelection takes a NotebookObject as an argument.
- You can use Options and SetOptions to read and write options associated with your current selection.
Examples
open all close allBasic Examples (1)
Properties & Relations (1)
You do not need to use NotebookSelection with most notebook-manipulating functions:
See Also
SelectionMove CurrentValue CellObject Cells SelectedCells
Function Repository: InspectNotebook
Tech Notes
Related Guides
Related Workflows
- Create a Palette ▪
- Add Styling to Text ▪
- Change the Background Color of a Cell ▪
- Put a Frame around a Cell ▪
- Put a Dingbat on a Cell
History
Introduced in 1996 (3.0)
Text
Wolfram Research (1996), NotebookSelection, Wolfram Language function, https://reference.wolfram.com/language/ref/NotebookSelection.html.
CMS
Wolfram Language. 1996. "NotebookSelection." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/NotebookSelection.html.
APA
Wolfram Language. (1996). NotebookSelection. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NotebookSelection.html
BibTeX
@misc{reference.wolfram_2025_notebookselection, author="Wolfram Research", title="{NotebookSelection}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/NotebookSelection.html}", note=[Accessed: 08-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_notebookselection, organization={Wolfram Research}, title={NotebookSelection}, year={1996}, url={https://reference.wolfram.com/language/ref/NotebookSelection.html}, note=[Accessed: 08-August-2025]}