Class Languages (Word VBA)
A collection of Language objects that represent languages used for proofing or formatting in Word. To use a Languages class variable it first needs to be instantiated, for example
Dim lngs as Languages
Set lngs = Languages
For Each
Here is an example of processing the Languages items in a collection.
Dim lng As Language
For Each lng In Languages
Next lng
Count
Returns a Long that represents the number of languages in the collection.
Dim lngCount As Long
lngCount = Languages.Count
Item
Returns an individual Language 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 lng As Language
Set lng = Languages(Index:=1)