Commands.Insert

Syntax

Commands.Insert( item, insertBefore)

Purpose

Adds a new item to the collection.

Parameters

item As Command

[In] Specifies the command object to insert.

insertBefore As Long

[In] Specifies the index of the existing command before which to insert the new command. When you want the new command to insert at the end, pass -1 to this parameter.

See Also

ApplicationMgr.GetCommand