WORKFLOW
Apply a Function to Cells in a Notebook
Programmatically query or modify the cells in a notebook.
To Extract Information from Cells...
Get the contents of all the text cells in a notebook:
![](Files/ApplyAFunctionToCellsInANotebook.en/1.png)
To Modify Cell Styling...
Add a dingbat to all Section cells in a notebook. nb is set to the NotebookObject of the target notebook (see Find a Notebook’s NotebookObject Identifier):
![](Files/ApplyAFunctionToCellsInANotebook.en/2.png)
To Edit Cell Contents...
Change every instance of “a” in a text cell to “x”:
![](Files/ApplyAFunctionToCellsInANotebook.en/3.png)