Class HangulAndAlphabetExceptions (Word VBA)
A collection of HangulAndAlphabetException objects that represents all Hangul and alphabet AutoCorrect exceptions. To use a HangulAndAlphabetExceptions class variable it first needs to be instantiated, for example
Dim haas as HangulAndAlphabetExceptions
Set haas = AutoCorrect.HangulAndAlphabetExceptions
For Each
Here is an example of processing the HangulAndAlphabetExceptions items in a collection.
Dim haa As HangulAndAlphabetException
For Each haa In AutoCorrect.HangulAndAlphabetExceptions
Next haa
Add
Returns a HangulAndAlphabetException object that represents a new exception to the list of AutoCorrect exceptions.
If the HangulAndAlphabetAutoAdd property is set to True, words are automatically added to the list of hangul and alphabet AutoCorrect exceptions. For more information on using Word with East Asian languages, see Word features for East Asian languages .
Add (Name)
Name: The word that you don't want Microsoft Word to correct automatically.
AutoCorrect.HangulAndAlphabetExceptions.Add Name:="test"
Count
Returns a Long that represents the number of exceptions in the collection.
Dim lngCount As Long
lngCount = AutoCorrect.HangulAndAlphabetExceptions.Count
Item
Returns an individual HangulAndAlphabetException object in a collection.
Item (Index)
Index: The individual object to be returned. Can be a Long indicating the ordinal position or a String representing the name of the individual object.
Dim haa As HangulAndAlphabetException
Set haa = AutoCorrect.HangulAndAlphabetExceptions(Index:=1)