ViewFields.Insert method (Outlook)

Creates a new ViewField object and inserts it at the specified index within the ViewFields collection.

Syntax

expression.Insert (PropertyName, Index)

expression A variable that represents a ViewFields 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 a one-based 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 where the new object is to be inserted.

Return value

A ViewField object that represents the new view field.

See also

ViewFields 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.