返回一个 FirstLetterExceptions 集合,代表后,Word 会自动大写的缩写的列表的下一个字母。 此为只读属性。
语法
expression。 FirstLetterExceptions
表达 一个代表“自动更正”对象的变量。
备注
此列表与 "'自动更正'例外项" 对话框中 "首字母大写" 选项卡上的"自动更正"例外项列表相对应。 有关返回集合中单个成员的信息,请参阅返回集合中的对象。
示例
本示例将"apt."添至"首字母大写"的"自动更正"例外项列表中。
AutoCorrect.FirstLetterExceptions.Add "apt."
本示例删除指定的原有"首字母大写"的"自动更正"例外项。
Dim strException As String
Dim fleLoop As FirstLetterException
Dim blnMatch As Boolean
Dim intConfirm As Integer
strException = _
InputBox("Enter the First Letter exception to delete.")
blnMatch = False
For Each fleLoop in AutoCorrect.FirstLetterExceptions
If fleLoop.Name = strException Then
blnMatch = True
intConfirm = MsgBox("Are you sure you want to delete " _
& fleLoop.Name, 4)
If intConfirm = vbYes Then
fleLoop.Delete
End If
End If
Next fleLoop
If blnMatch <> True Then
MsgBox "There was no First Letter exception: " _
& strException
End If
另请参阅
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。