GetAutoCorrect$()

Syntax

GetAutoCorrect$(AutoCorrectEntry$)

Remarks

Returns the replacement text for the specified entry in the Replace column of the AutoCorrect dialog box (Tools menu). If AutoCorrectEntry$ doesn't exist, GetAutoCorrect$() returns an empty string ("").

Argument

Explanation

AutoCorrectEntry$

The text specified in the Replace column for an AutoCorrect entry in the AutoCorrect dialog box. AutoCorrectEntry$ is not case-sensitive. For example, you can specify an entry "GW" as either "GW" or "gw."


Example

This example checks the replacement text for the AutoCorrect entry "uk." If the replacement text doesn't match "United Kingdom," the AutoCorrect entry is modified to do so.


If GetAutoCorrect$("uk") <> "United Kingdom" Then 
    ToolsAutoCorrect .Replace = "uk", \
        .With = "United Kingdom", .Add
End If

See Also

ToolsAutoCorrect