Class View (Outlook VBA)

The class View represents a customizable view used to sort, group, and view data.

The classes BusinessCardView, CalendarView, CardView, Explorer, Folder, IconView, PeopleView, SearchView, TableView and TimelineView. give access to class View


Dim vw as View
Set vw = ActiveExplorer.CurrentView

For Each

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


Dim vw As View
For Each vw In Views
	
Next vw

Methods

Apply - Applies the view to the Microsoft Outlook user interface.

Copy - Creates a new instance of a View object.

Delete - Deletes an object from the collection.

GoToDate - Changes the date used by the current view to display information.

Reset - Resets a built-in Microsoft Outlook view to its original settings.

Save - Saves the view, or saves the changes to a view.

Properties

Name (Default member) - Returns or sets a String value that represents the display name for the object.

Class returns an OlObjectClass constant indicating the object's class.

Filter returns or sets a String value that represents the filter for a view.

Language returns or sets a String value that represents the language setting for the object that defines the language used in the menu.

LockUserChanges returns or sets a Boolean value that indicates whether a user can modify the settings of the current view.

SaveOption returns an OlViewSaveOption constant that specifies the folders in which the specified view is available and the read permissions attached to the view.

Session returns the NameSpace object for the current session.

Standard returns a Boolean that specifies whether or not the view is a built-in Outlook view. Read-only

ViewType returns an OlViewType constant representing the view type of a View object.

XML returns or sets a String value that specifies the XML definition of the current view.

NameSpace - Represents an abstract root object for any data source.