Delete Method (OLE Container)

       

Deletes the specified object and frees the memory associated with it.

Syntax

object.Delete

The object is an object expression that evaluates to an object in the Applies To list.

Remarks

This method enables you to explicitly delete an object. Objects are automatically deleted when a form is closed or when the object is replaced with a new object.