SelectionCreateCell

SelectionCreateCell[notebook]

copies the contents of the current selection in a notebook into a new cell.

SelectionCreateCell[notebook,sel]

sets the current selection after the copy to be as specified by sel.

Details

Examples

open allclose all

Basic Examples  (2)

Select a cell and create a copy beneath it:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
In[3]:=
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
In[3]:=
Click for copyable input

Applications  (1)

See Also

SelectionEvaluateCreateCell  NotebookRead  NotebookWrite

Tutorials

Introduced in 1996
(3.0)