AutoCorrect![]() |
代表单个的“自动更正”例外项。OtherCorrectionsException 对象是 OtherCorrectionsExceptions 集合的成员。OtherCorrectionsExceptions 集合包含 Microsoft Word 将不自动更正的所有单词。此列表与“‘自动更正’例外项”对话框(“工具”菜单中的“自动更正”命令)中的“其他”选项卡上的“自动更正”例外项的列表相对应。
用 OtherCorrectionsExceptions (index) 可返回单个 OtherCorrectionsException 对象,其中 index 是“自动更正”例外项的名称或其索引序号。下列示例从“自动更正”例外项的列表中删除“WTop”。
AutoCorrect.OtherCorrectionsExceptions("WTop").Delete
索引序号代表“自动更正”例外项在 OtherCorrectionsExceptions 集合中的位置。下例将显示 OtherCorrectionsExceptions 集合中的第一个项目的名称。
MsgBox AutoCorrect.OtherCorrectionsExceptions(1).Name
如果 OtherCorrectionsAutoAdd 属性值为 True,这些单词将被自动添至“自动更正”例外项的列表中。用 Add 方法可在 OtherCorrectionsExceptions 集合中添加一个项目。下例将“TipTop”添至“自动更正”例外项列表中。
AutoCorrect.OtherCorrectionsExceptions.Add Name:="TipTop"