NotebookLocate

NotebookLocate["tag"]

locates all cells with the specified tag in your current input notebook, selecting the cells and scrolling to the position of the first one.

NotebookLocate[{"file","tag"}]

if necessary opens the notebook stored in file, then locates cells with the specified tag.

NotebookLocate[{"file.wl",line}]

if necessary opens the package file "file.wl", then navigates to the line number line.

Details

Examples

open allclose all

Basic Examples  (1)

Find the cell with the tag "t"; the notebook autoscrolls:

Scope  (1)

Create a notebook, then go to the cell tagged "t0":

Locate more than one cell with the same tag:

Applications  (1)

Cell tags identify a cell as a target for navigation controls:

A button to find the cell in this document with label "t":

Possible Issues  (1)

When more than one cell has the target tag, you might only see the first one:

But an operation on the selected cells also acts on those you do not see:

Wolfram Research (1996), NotebookLocate, Wolfram Language function, https://reference.wolfram.com/language/ref/NotebookLocate.html (updated 2023).

Text

Wolfram Research (1996), NotebookLocate, Wolfram Language function, https://reference.wolfram.com/language/ref/NotebookLocate.html (updated 2023).

CMS

Wolfram Language. 1996. "NotebookLocate." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2023. https://reference.wolfram.com/language/ref/NotebookLocate.html.

APA

Wolfram Language. (1996). NotebookLocate. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NotebookLocate.html

BibTeX

@misc{reference.wolfram_2024_notebooklocate, author="Wolfram Research", title="{NotebookLocate}", year="2023", howpublished="\url{https://reference.wolfram.com/language/ref/NotebookLocate.html}", note=[Accessed: 24-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_notebooklocate, organization={Wolfram Research}, title={NotebookLocate}, year={2023}, url={https://reference.wolfram.com/language/ref/NotebookLocate.html}, note=[Accessed: 24-November-2024 ]}