返回“自動更正”替換條目的數(shù)組。
expression.ReplacementList(Index)
expression 必需。該表達式返回一個 AutoCorrect 對象。
Index Variant 類型,可選。要返回的“自動更正”替換條目數(shù)組的行索引。該行以兩元素的一維數(shù)組形式返回:第一個元素為第一列中的文本,第二個元素為第二列中的文本。
可用 AddReplacement 方法向替換文本列表添加自動更正項。
本示例在替換文本列表中搜索“Temperature”的替換條目,如果存在,則顯示該替換條目。
repl = Application.AutoCorrect.ReplacementList
For x = 1 To UBound(repl)
If repl(x, 1) = "Temperature" Then MsgBox repl(x, 2)