Advertisement
Guest User

Untitled

a guest
Aug 8th, 2013
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. CellPrint@Cell[BoxData["MyTag"], "Input", CellTags -> "MyTag"]
  2. Print[Button["Print Button",
  3. CellPrint@Cell[BoxData[
  4. ToBoxes@Button["Cases[\"MyTag\"] Cells",
  5. Print@
  6. Cases[NotebookGet[EvaluationNotebook[]],
  7. Cell[___, CellTags -> "MyTag", ___], Infinity];
  8. ]
  9. ], "Input", CellTags -> "MyTag"]
  10. ]
  11. ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement