Class AutoCorrect (Word VBA)
The class AutoCorrect represents the AutoCorrect functionality in Word.
Class Application gives access to class AutoCorrect.
Dim act as AutoCorrect
Set act = AutoCorrect
For Each
Here is an example of processing the AutoCorrect items in a collection.
For Each ace In AutoCorrect.OtherCorrectionsExceptions
response = MsgBox("Delete entry: " & ace.Name, vbYesNoCancel)
If response = vbYes Then
ace.Delete
Else
If response = vbCancel Then End
End If
Next ace
Properties
CorrectCapsLock true if Word automatically corrects instances in which you use the CAPS LOCK key inadvertently as you type.
CorrectDays true if Word automatically capitalizes the first letter of days of the week.
CorrectHangulAndAlphabet true if Microsoft Word automatically applies the correct font to Latin words typed in the middle of Hangul text or vice versa.
CorrectInitialCaps true if Word automatically makes the second letter lowercase if the first two letters of a word are typed in uppercase. For example, "WOrd" is corrected to "Word.
CorrectKeyboardSetting true if Microsoft Word automatically transposes words to their native alphabet if you type text in a language other than the current keyboard language.
CorrectSentenceCaps true if Word automatically capitalizes the first letter in each sentence.
CorrectTableCells true to automatically capitalize the first letter of table cells.
DisplayAutoCorrectOptions true for Microsoft Word to display the AutoCorrect Options button.
Entries returns an AutoCorrectEntries collection that represents the current list of AutoCorrect entries.
FirstLetterAutoAdd true if Word automatically adds abbreviations to the list of AutoCorrect First Letter exceptions.
FirstLetterExceptions returns a FirstLetterExceptions collection that represents the list of abbreviations after which Word won't automatically capitalize the next letter.
HangulAndAlphabetAutoAdd true if Microsoft Word automatically adds words to the list of Hangul and alphabet AutoCorrect exceptions.
HangulAndAlphabetExceptions returns a HangulAndAlphabetExceptions collection that represents the list of Hangul and alphabet AutoCorrect exceptions.
OtherCorrectionsAutoAdd true if Microsoft Word automatically adds words to the list of AutoCorrect exceptions on the Other Corrections tab in the AutoCorrect Exceptions dialog box (AutoCorrect Options command, Tools menu). Word adds a word to this list if you delete and then retype a word that you didn't want Word to correct.
OtherCorrectionsExceptions returns an OtherCorrectionsExceptions collection that represents the list of words that Microsoft Word won't correct automatically.
ReplaceText true if Microsoft Word automatically replaces specified text with entries from the AutoCorrect list.
ReplaceTextFromSpellingChecker true if Microsoft Word automatically replaces misspelled text with suggestions from the spelling checker as the user types. Word only replaces words that contain a single misspelling and for which the spelling dictionary only lists one alternative.
TwoInitialCapsAutoAdd true if Microsoft Word automatically adds words to the list of AutoCorrect Initial Caps exceptions. A word is added to this list if you delete and then retype the uppercase letter (following the initial uppercase letter) that Word changed to lowercase.
TwoInitialCapsExceptions returns a TwoInitialCapsExceptions collection that represents the list of terms containing mixed capitalization that Word won't correct automatically.
Related Classes
AutoCorrectEntries - A collection of AutoCorrectEntry objects that represent all the AutoCorrect entries available to Word. The AutoCorrectEntries collection includes all the entries in the AutoCorrect dialog box.
FirstLetterExceptions - A collection of FirstLetterException objects that represent the abbreviations excluded from automatic correction.
HangulAndAlphabetExceptions - A collection of HangulAndAlphabetException objects that represents all Hangul and alphabet AutoCorrect exceptions.
OtherCorrectionsExceptions - A collection of OtherCorrectionsException objects that represents the list of words that Microsoft Word won't correct automatically.
TwoInitialCapsExceptions - A collection of TwoInitialCapsException objects that represent all the items listed in the Don't correct box on the INitial CAps tab in the AutoCorrect Exceptions dialog box.