WorkspaceObject.InsertObject

Syntax

WorkspaceObject.InsertObject( obj, index)

Purpose

Inserts a WorkspaceObject at the specified index under another WorkspaceObject.

Remarks

Use the WorkspaceObject.NewFile or WorkspaceObject.NewFolder method to create a new WorkspaceObject.

Parameters

obj As WorkspaceObject

[In] Specifies the WorkspaceObject to be insert.

index As Long

[In] Specifies the zero-based index specifying the location at which to insert the WorkspaceObject.

See Also

WorkspaceObject

WorkspaceObject.NewFile

WorkspaceObject.NewFolder

WorkspaceObject.NumContainedObjects

WorkspaceObject.RemoveObject