PickerDialog.CreatePickerResults method (Office)
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 PickerDialog 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
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.