ReplacementList property (Excel Graph)
Returns the array of AutoCorrect replacements.
Syntax
expression.ReplacementList (Index)
expression Required. An expression that returns an AutoCorrect object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Index | Optional | Variant | The row index of the array of AutoCorrect replacements to be returned. The row is returned as a one-dimensional array with two elements: the first element is the text in column 1, and the second element is the text in column 2. |
Remarks
Use the AddReplacement method to add an entry to the replacement list.
Example
This example searches the replacement list for Temperature and displays the replacement entry if it exists.
repl = Application.AutoCorrect.ReplacementList
For x = 1 To UBound(repl)
If repl(x, 1) = "Temperature" Then MsgBox repl(x, 2)
Next
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for