CardView.Language property (Outlook)
Returns or sets a String value that represents the language setting for the view. Read/write.
expression A variable that represents a CardView object.
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.
The following Microsoft Visual Basic for Applications (VBA) example sets the language type of all View objects of type olTableView 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(olFolderInbox).Views 'Iterate through each view in the collection. For Each objView In objViews Debug.Print objView.Name 'If view is of type olTableVIew then set language. If objView.ViewType = olTableView And objView.Standard = False Then objView.Language = "EN-US" End If Next objView End Sub
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.