Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Notebooks and Documents > Low-Level Notebook Programming > SelectionCreateCell >

SelectionCreateCell

SelectionCreateCell[notebook]
copies the contents of the current selection in a notebook into a new cell.
SelectionCreateCell
sets the current selection after the copy to be as specified by sel.
  • If the current selection is a cell group, then SelectionCreateCell will create a new cell group.
  • The default for sel is .
Select a cell and create a copy beneath it:
Select a cell, create a copy, and leave the new cell contents selected:
Select a cell and create a copy beneath it:
In[1]:=
Click for copyable input
 
Select a cell, create a copy, and leave the new cell contents selected:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Create many copies of a single cell:
New in 3
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF