ViewRemove Event

Microsoft Outlook Visual Basic

ViewRemove Event

       

Occurs when a view has been removed from the specified collection.

Sub expression_ ViewRemove(ByVal View As View)

expression   A variable which references an object of type Views declared with events in a class module.

View   The view which was removed from the collection prior to this event.

Example

The following example displays the name of the view that has been removed from the collection.

Sub tblView_ViewRemove(ByVal View As View)
'Displays view name

   With View
       MsgBox "The view: " & .Name & " has been removed."
   End With

End Sub