Düzenle

Aracılığıyla paylaş


PickerDialog.Resolve method (Office)

Resolves the token by using the PickerDialog and retrieves the results.

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 PickerDialog 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", "https://my", msoPickerFieldtypeText) 
 
' Resolve the token by using Picker Dialog and get the results. 
Set objPickerResults = objPickerDialog.Resolve("johndoe", False) 

See also

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.