Function Reference

_OL_ViewApply

Applies a view to the Microsoft Outlook user interface of the specified folder.

#Include <OutlookEX_GUI.au3>
_OL_ViewApply($oOL, $vView[, $vFolder = Default])

 

Parameters

$oOL Outlook object returned by a preceding call to _OL_Open()
$vView Index, name or object of the view to be applied
$vFolder [optional] Folder object as returned by _OL_FolderAccess or full name of folder. Has to be specified when $vView is not a view object

 

Return Value

Success: Object of the view
Failure: Returns 0 and sets @error:
    1 - $vFolder has not been specified
    2 - Error accessing the specified folder. See @extended for errorcode returned by GetFolderFromID
    3 - Error accessing the folders views. @extended is set to the COM error code
    4 - Error applying the view. @extended is set to the COM error code
    5 - View does not exist or an error occurred. @extended is set to the COM error code (if any)

 

Remarks

None.

 

Related