BusinessCardView.Language property (Outlook)

Returns or sets a String value that represents the language setting for the object that defines the language used in the menu. Read/write.

Syntax

expression.Language

expression A variable that represents a BusinessCardView object.

Remarks

The Language property uses a String to represent an ISO language tag. For example, the string "EN-US" represents the ISO code for "United States - English."

If a valid language code is specified, the object will only be available in the View menu for the specified language type. If no value is specified, the object item is available for all language types. The default value for this property is an empty string.

Example

The following Visual Basic for Applications (VBA) example sets the language type of all View objects of type olBusinessCArdView to U.S. English.

Sub SetLanguage() 
 
 'Sets the language of all table views to U.S. English. 
 
 Dim objViews As Outlook.Views 
 
 Dim objView As Outlook.View 
 
 
 
 Set objViews = _ 
 
 Application.GetNamespace("MAPI").GetDefaultFolder(olFolderContacts).Views 
 
 'Iterate through each view in the collection. 
 
 For Each objView In objViews 
 
 Debug.Print objView.Name 
 
 'If view is of type olBusinessCardVIew then set language. 
 
 If objView.ViewType = olBusinessCardView And objView.Standard = False Then 
 
 objView.Language = "EN-US" 
 
 End If 
 
 Next objView 
 
End Sub

See also

BusinessCardView Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.