ResolveAll Method

Applies To

Recipients collection object.

Description

Attempts to resolve all the Recipient objects in the Recipients collection. Returns True if all of the objects were resolved, False if one or more were not.

Syntax

expression.ResolveAll

expression An expression that returns a Recipients object.

See Also

Resolve method, Resolved property.

Example

This example attempts to resolve all recipients and, if unsuccessful, displays a message box for each unresolved recipient.

Set myItem = myOlApp.CreateItem(olMailItem)
Set myRecipients = myItem.Recipients
myRecipients.Add("Aaron Con")
myRecipients.Add("Viki Parrott")
myRecipients.Add("Jeffrey Weems")
If Not myRecipients.ResolveAll Then
    For Each myRecipient In myRecipients
        If Not myRecipient.Resolved Then
            MsgBox myRecipient.Name
        End If
    Next
End If