HangulAndAlphabetExceptions Collection Object

Microsoft Word Visual Basic

HangulAndAlphabetExceptions Collection Object

AutoCorrect HangulAndAlphabetExceptions
HangulAndAlphabetException

A collection of HangulAndAlphabetException objects that represents all Hangul and alphabet AutoCorrect exceptions. This list corresponds to the list of AutoCorrect exceptions on the Korean tab in the AutoCorrect Exceptions dialog box (AutoCorrect command, Tools menu).

Using the HangulAndAlphabetExceptions Collection

Use the HangulAndAlphabetExceptions property to return the HangulAndAlphabetExceptions collection. The following example displays the items in this collection.

For Each aHan In AutoCorrect.HangulAndAlphabetExceptions
    MsgBox aHan.Name
Next aHan
		

If the value of the HangulAndAlphabetAutoAdd property is True, words are automatically added to the list of Hangul and alphabet AutoCorrect exceptions. Use the Add method to add an item to the HangulAndAlphabetExceptions collection. The following example adds "hello" to the list of alphabet AutoCorrect exceptions.

AutoCorrect.HangulAndAlphabetExceptions.Add Name:="hello"
		

Use HangulAndAlphabetExceptions(index), where index is the Hangul or alphabet AutoCorrect exception name or the index number, to return a single HangulAndAlphabetException object. The following example deletes the alphabet AutoCorrect exception named "goodbye."

AutoCorrect.HangulAndAlphabetExceptions("goodbye").Delete
		

The index number represents the position of the hangul or alphabet AutoCorrect exception in the HangulAndAlphabetExceptions collection. The following example displays the name of the first item in the HangulAndAlphabetExceptions collection.

MsgBox AutoCorrect.HangulAndAlphabetExceptions(1).Name
		

Remarks

For more information on using Word with East Asian languages, see Word features for East Asian languages.