CardView.Standard Property (Outlook)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Returns a Boolean value that indicates whether the CardView object is a built-in Outlook view. Read-only.

expression .Standard

expression A variable that represents a CardView object.

The Reset method can only be used on a view if the value of this property is set to True.

The following Visual Basic for Applications (VBA) example enumerates through the Views collection of the current Folder object using the Standard property to determine if a View object is a built-in Outlook view. If the View object is a built-in Outlook view, the sample calls the Reset method to reset the view to its default settings. Otherwise, the sample uses the Delete method to delete the view.

Private Sub RemoveAllViewCustomization() 
 
 Dim objView As View 
 
 
 
 ' Enumerate each View object in the Views collection 
 
 ' of the current Folder object. 
 
 For Each objView In Application.ActiveExplorer.CurrentFolder.Views 
 
 ' If the View object is a built-in Outlook view, reset 
 
 ' the view to its default settings. If the View object 
 
 ' is a custom view, delete it. 
 
 If objView.Standard Then 
 
 objView.Reset 
 
 Else 
 
 objView.Delete 
 
 End If 
 
 Next 
 
End Sub 
 

Show: