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.
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin