Partager via


PickerDialog.CreatePickerResults Method (Office)

Creates an empty PickerResults object.

Version Information

Version Added: Office 2010

Syntax

expression .CreatePickerResults

expression An expression that returns a PickerDialog object.

Return Value

PickerResults

Remarks

You can add the PickerResult to the returned object and specify it to the second parameter of the Show method as already existing results of the PickerDialog object.

Example

The following code sets various properties of the Picker Dialog and adds the already existing PickerResults to the results.

Dim objPickerDialog As PickerDialog 
Dim objPickerExistingResults As PickerResults 
 
Set objPickerDialog = Application.PickerDialog 
objPickerDialog.DataHandlerId = "{000CDF0A-0000-0000-C000-000000000046}" 
objPickerDialog.Title = "Sample Picker Dialog" 
 
Set objPickerExistingResults = objPickerDialog.CreatePickerResults 
Set objPickerExistingResult = objPickerExistingResults.Add("johndoe@contoso.com", "John Doe", "User") 
Set objPickerResults = objPickerDialog.Show(True, objPickerExistingResult) 

See Also

Concepts

PickerDialog Object Members

PickerDialog Object