Table of contents
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.


expression. CreatePickerResults

expression An expression that returns a PickerDialog object.

Return Value



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.


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("", "John Doe", "User") 
Set objPickerResults = objPickerDialog.Show(True, objPickerExistingResult) 

See also


PickerDialog Object

Other resources

PickerDialog Object Members

© 2018 Microsoft