AutoCorrect.AddReplacement Method
Adds an entry to the array of AutoCorrect replacements.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Function AddReplacement ( _
What As String, _
Replacement As String _
) As Object
'Usage
Dim instance As AutoCorrect
Dim What As String
Dim Replacement As String
Dim returnValue As Object
returnValue = instance.AddReplacement(What, _
Replacement)
Object AddReplacement(
string What,
string Replacement
)
Parameters
What
Type: System.StringRequired String. The text to be replaced. If this string already exists in the array of AutoCorrect replacements, the existing substitute text is replaced by the new text.
Replacement
Type: System.StringRequired String. The replacement text.
Return Value
Type: System.Object