Table of contents
TOC
Collapse the table of content
Expand the table of content

PickerDialog.CreatePickerResults Method (Office)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Creates an empty PickerResults object.

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

Other resources

PickerDialog Object Members

© 2018 Microsoft