Folder.CurrentView Property
Outlook Developer Reference |
Returns a View object representing the current view. Read-only.
Version Information
Version Added: Outlook 2007
Syntax
expression.CurrentView
expression A variable that represents a Folder object.
Remarks
To obtain a View object for the view of the current Explorer, use Explorer.CurrentView instead of the CurrentView property of the current Folder object returned by Explorer.CurrentFolder.
You must save a reference to the View object returned by CurrentView before you proceed to use it for any purpose.
To properly reset the current view, you must do a View.Reset and then a View.Apply. The code sample below illustrates the order of the calls:
Visual Basic for Applications |
---|
|
Example
The following VBA example displays the current view of the Inbox folder.
Visual Basic for Applications |
---|
|
See Also