Resolve Method

Microsoft Outlook Visual Basic

Attempts to resolve a Recipient object against the Address Book. Returns True if the object was resolved, False if it was not.

expression.Resolve

expression    Required. An expression that returns a Recipient object.

Remarks

When you run a program that uses the Microsoft Outlook object model to call the Resolve method, you receive a warning message. This warning message tells you that a program is trying to access the Address Book on your behalf and asks if you want to allow this.

Example

This Visual Basic for Applications (VBA) example uses CreateItem to create a simple task and delegate it as a task request to another user. Before running this example, replace 'Dan Wilson' with a valid recipient name.

Sub AssignTask()
	Dim myOlApp As New Outlook.Application
	Dim myItem As Outlook.TaskItem
	Dim myDelegate As Outlook.Recipient
	Set MyItem = myOlApp.CreateItem(olTaskItem)
	MyItem.Assign
	Set myDelegate = MyItem.Recipients.Add("Dan Wilson")
	myDelegate.Resolve
	If myDelegate.Resolved Then
		myItem.Subject = "Prepare Agenda For Meeting"
		myItem.DueDate = Now + 30
		myItem.Display
		myItem.Send
	End If
End Sub