({{, (RefLink[CellAutoOverwrite, paclet:ref/CellAutoOverwrite])
is an option for (RefLink[Cell, paclet:ref/Cell]) which specifies whether an output cell should be overwritten by new output when the preceding input cell is evaluated. }})

OpenersNotesSection(Spacer1)Details

Any sequence of cells with (RefLink[GeneratedCell, paclet:ref/GeneratedCell])->(RefLink[True, paclet:ref/True]) is assumed to correspond to output.

An output cell is deleted only when new output is ready to be inserted in its place.

With (RefLink[CellAutoOverwrite, paclet:ref/CellAutoOverwrite])->(RefLink[False, paclet:ref/False]), new output is placed directly after the preceding input, pushing down pre-existing output.

(RefLink[CellAutoOverwrite, paclet:ref/CellAutoOverwrite]) is typically set for cells in "Output" style.

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Create an input cell with an output cell that has the setting (RefLink[CellAutoOverwrite, paclet:ref/CellAutoOverwrite])->(RefLink[False, paclet:ref/False]):

nb=CreateDocument[{ExpressionCell[Defer[2+2],"Input"],ExpressionCell[4,"Output",CellAutoOverwrite->False]}];

When the input is evaluated, it creates a new output cell without overwriting the old one:

SelectionMove[nb,Next,Cell];SelectionEvaluateCreateCell[nb]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[GeneratedCell, paclet:ref/GeneratedCell])  ▪  (RefLink[CellEvaluationDuplicate, paclet:ref/CellEvaluationDuplicate])  ▪  (RefLink[Deletable, paclet:ref/Deletable])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Options for Cells, paclet:tutorial/OptionsForCells])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Evaluation Options in Notebooks, paclet:guide/EvaluationOptionsInNotebooks])}, {▪(RefLinkPlain[Stylesheets, paclet:guide/Stylesheets])}})}})