DeleteReplacement Method

Deletes an entry from the array of AutoCorrect replacements.

expression. DeleteReplacement( _What_)

expression Required. An expression that returns an [AutoCorrect](./Excel.AutoCorrect(Graph property).md) object.

What Required String. The text to be replaced, as it appears in the row to be deleted from the array of AutoCorrect replacements. If this string doesn't exist in the array of AutoCorrect replacements, this method fails.

Example

This example removes the word "Temperature" from the array of AutoCorrect replacements.

With myChart.Application.AutoCorrect 
 .DeleteReplacement "Temperature" 
End With