OrderFields.Insert method (Outlook)

Creates a new OrderField object and inserts it at the specified index within the OrderFields collection.

Syntax

expression.Insert (PropertyName, Index, IsDescending)

expression A variable that represents an OrderFields object.

Parameters

Name Required/Optional Data type Description
PropertyName Required String The name of the property to which the new object is associated.
Index Required Variant Either the index number at which to insert the new object, or a value used to match the ViewXMLSchemaName property value of an object in the collection at where the new object is to be inserted.
IsDescending Optional Boolean The value used to set the IsDescending property of the new OrderField object. If this value is not specified, the default value of the IsDescending property is used.

Return value

An OrderField object that represents the new order field.

See also

OrderFields Object

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.