IconView.IconViewType (Outlook)
Returns or sets an OlIconViewType constant that determines how Outlook items are displayed in the IconView object. Possible return values are olIconViewLarge - Displays Outlook items as large icons, with the description for the Outlook item below the icon, olIconViewList - Displays Outlook items as a list of small icons, with the description for the Outlook item next to the icon, olIconViewSmall - Displays Outlook items as a collection of small icons, with the description for the Outlook item next to the icon.
If the value of this property is set to olIconSortAndAutoArrange, the value of the IconPlacement property is automatically set to olIconSortAndAutoArrange.
Sub ConfigureIconView()
Dim objIconView As IconView
' Check if the current view is an icon view.
If Application.ActiveExplorer.CurrentView.ViewType = _
olIconView Then
' Obtain a IconView object reference for the
' current icon view.
Set objIconView = _
Application.ActiveExplorer.CurrentView
With objIconView
' Display items in the icon view as a
' set of large icons.
.IconViewType = olIconLarge
' Sort and auto arrange the items
' within the icon view.
.IconPlacement = olIconSortAndAutoArrange
' Save the icon view.
.Save
End With
End If
End Sub