Share via


PickerProperties.Add Method (Office)

Version Information

Version Added: Office 2010

Syntax

expression .Add(Id, Value, Type)

expression An expression that returns a PickerProperties object.

Parameters

Name

Required/Optional

Data Type

Description

Id

Required

String

Key name of the property.

Value

Required

String

Value of the property.

Type

Required

MsoPickerField

Type 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 Members

PickerProperties Object