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

PickerProperties.Add Method (Office)

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

Syntax

expression. Add( Id, Value, Type )

expression An expression that returns a PickerProperties object.

Parameters

NameRequired/OptionalData TypeDescription
IdRequiredStringKey name of the property.
ValueRequiredStringValue of the property.
TypeRequiredMsoPickerFieldType of the property.

Return Value

PickerProperty

Example

The following code sets various properties of the PickerDialog object.

Dim objPickerDialog As PickerDialog 
Dim objPickerProperties As PickerProperties 

' Configure Picker Dialog properties. 
Set objPickerDialog = Application.PickerDialog 
objPickerDialog.DataHandlerId = "{000CDF0A-0000-0000-C000-000000000046}" 
objPickerDialog.Title = "Sample Picker Dialog" 
Set objPickerProperties = objPickerDialog.Properties 
Set objPickerProperty = objPickerProperties.Add("SiteUrl", "http://my", msoPickerFieldtypeText) 

See also

Concepts

PickerProperties Object

Other resources

PickerProperties Object Members

© 2018 Microsoft