ReplaceLockText Cell (Change Shape Behavior Section)

Office 2013 and later

Last modified: March 09, 2015

Applies to: Office 2013 | Visio 2013

Indicates whether the values of specified cells in a master shape overwrite the values (including local values) of a shape being replaced during a shape replacement operation. The ReplaceLockText determines whether the text displayed on the Master overwrites the text of the shape being replaced.




The text on the master shape overwrites the text on the old shape. In addition, the master shape overwrites the values of the cells in the following sections during a shape replacement operation:

  • Text Fields section

  • Text Block Format section


The replacement shape contains any text, text fields, or other text properties from the old shape that have been added to the shape.

When the replacement shape contains text properties from the old shape, the replacement shape also has the values from the Character and Paragraph sections of the old shape if they have more than one row.

If set to TRUE (1), the values of the shape Master replaces the values of the following on the shape being replaced:

To get a reference to the ReplaceLockText cell by name from another formula, by value of the N attribute of a Cell element, or from a program using the CellsU property, use:

Cell name:


To get a reference to the ReplaceLockText cell by index from a program, use the CellsSRC property with the following arguments:

Section index:


Row index:


Cell index: