CardView.Reset method (Outlook)
Resets a built-in Microsoft Outlook view to its original settings.
Syntax
expression. Reset
expression A variable that represents a CardView object.
Remarks
This method works only on built-in Outlook views.
Example
The following Visual Basic for Applications (VBA) example resets all built-in views in the user's Inbox default folder to their original settings. The Standard property is returned to determine if the view is a built-in Outlook view.
Sub ResetInboxViews()
Dim objName As NameSpace
Dim objViews As Views
Dim objView As View
' Get the Views collection of the Inbox default folder.
Set objName = Application.GetNamespace("MAPI")
Set objViews = objName.GetDefaultFolder(olFolderInbox).Views
' Enumerate the Views collection, calling the Reset
' method for each View object with its Standard
' property value set to True.
For Each objView In objViews
If objView.Standard = True Then
objView.Reset
End If
Next objView
End Sub
See also
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.