This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)


takes the current selection in a notebook and creates a new cell containing the result obtained by evaluating the contents of the selection using the kernel.
SelectionEvaluateCreateCell[notebook, sel]
sets the current selection after the evaluation to be as specified by sel.
  • The default for sel is After.
  • SelectionEvaluateCreateCell performs the same underlying operation as typing Shift+Enter in the front end. It does not, however, have side effects such as incrementing $Line.
New in 3