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