Partager via


PickerDialog.Resolve Method (Office)

Resolves the token using the Picker Dialog and retrieves the results.

Version Information

Version Added: Office 2010

Syntax

expression .Resolve(TokenText, duplicateDlgMode)

expression An expression that returns a PickerDialog object.

Parameters

Name

Required/Optional

Data Type

Description

TokenText

Required

String

The text string to resolve.

duplicateDlgMode

Required

Integer

Return Value

PickerResults

Example

Resolves entities by using the Picker Dialog object.

Dim objPickerDialog As PickerDialog 
Dim objPickerProperties As PickerProperties 
Dim objPickerProperty As PickerProperty 
Dim objPickerExistingResults As PickerResults 
Dim objPickerExistingResult As PickerResult 
Dim objPickerResults As PickerResults 
 
' Configure the Picker Dialog properties. 
Set objPickerDialog = Application.PickerDialog 
objPickerDialog.DataHandlerId = "{000CDF0A-0000-0000-C000-000000000046}" 
objPickerDialog.Title = "Sample Picker Dialog" 
Set objPickerProperties = objPickerDialog.Properties 
Set objPickerProperty = objPickerProperties.Add("SiteUrl", "http://my", msoPickerFieldtypeText) 
 
' Resolve the token by using Picker Dialog and get the results. 
Set objPickerResults = objPickerDialog.Resolve("johndoe", False) 

See Also

Concepts

PickerDialog Object Members

PickerDialog Object