Syntax
GetAutoCorrectException$(Tab, EntryNumber)
Remarks
Returns the text of the exception that corresponds to EntryNumber on the specified tab in the AutoCorrect Exceptions dialog box (AutoCorrect command, Tools Menu). In Word version 6.0, GetAutoCorrectException$() is unavailable and generates an error.
Argument | Explanation |
Tab | The tab where Word looks for the exception list entry: 0 (zero) First Letter 1 INitial CAps |
EntryNumber | The number of the exception list entry, from 1 to the number returned by CountAutoCorrectExceptions() |
Example
This example creates the array exceptions$(), which contains all the exceptions listed on the INitial CAps tab in the AutoCorrect Exceptions dialog box (AutoCorrect command, Tools Menu):
size = CountAutoCorrectExceptions(1) - 1 Dim exceptions$(size) For count = 0 To size exceptions$(count) = GetAutoCorrectException$(1, count + 1) Next
The following example deletes all the exceptions listed on the INitial CAps tab in the AutoCorrect Exceptions dialog box (AutoCorrect command, Tools Menu):
For n = 1 To CountAutoCorrectExceptions(1) ac$ = GetAutoCorrectException$(1, 1) ToolsAutoCorrectExceptions .Tab = 1, .Name = ac$, .Delete Next
See Also
CountAutoCorrectExceptions(), IsAutoCorrectException(), ToolsAutoCorrectExceptions