Class HangulAndAlphabetException (Word VBA)

The class HangulAndAlphabetException represents a single Hangul or alphabet AutoCorrect exception. The HangulAndAlphabetException object is a member of the HangulAndAlphabetExceptions collection.

Set

To use a HangulAndAlphabetException class variable it first needs to be instantiated, for example

Dim haa as HangulAndAlphabetException
Set haa = AutoCorrect.HangulAndAlphabetExceptions(Index:=1)

The following procedures can be used to set variables of type HangulAndAlphabetException: HangulAndAlphabetExceptions.Add, HangulAndAlphabetExceptions.Item and AutoCorrect.HangulAndAlphabetExceptions

For Each

Here is an example of processing the HangulAndAlphabetException items in a collection.

Dim haa As HangulAndAlphabetException
For Each haa In AutoCorrect.HangulAndAlphabetExceptions
	
Next haa

Delete

Deletes the specified exception.

AutoCorrect.HangulAndAlphabetExceptions(1).Delete

Index

Returns a Long that represents the position of an item in a collection.

Dim lngIndex As Long
lngIndex = AutoCorrect.HangulAndAlphabetExceptions(1).Index

Name

Returns the name of the specified object.

Dim strName As String
strName = AutoCorrect.HangulAndAlphabetExceptions(1).Name

Parent

Returns an object that represents the parent object of the specified HangulAndAlphabetException object.

Dim objParent As Object
Set objParent = AutoCorrect.HangulAndAlphabetExceptions(1).Parent

HangulAndAlphabetExceptions.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 .

Syntax : expression.Add (Name)

Name: The word that you don't want Microsoft Word to correct automatically.

AutoCorrect.HangulAndAlphabetExceptions.Add Name:="test"

HangulAndAlphabetExceptions.Count

Returns a Long that represents the number of exceptions in the collection.

Dim lngCount As Long
lngCount = AutoCorrect.HangulAndAlphabetExceptions.Count

HangulAndAlphabetExceptions.Item

Returns an individual HangulAndAlphabetException object in a collection.

Syntax : expression.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)

HangulAndAlphabetExceptions.Parent

Returns an object that represents the parent object of the specified HangulAndAlphabetExceptions object.

Dim objParent As Object
Set objParent = AutoCorrect.HangulAndAlphabetExceptions.Parent