GetSelectedObject 

Use this method to return the IDespatch pointer for the selected object.

Syntax

GetSelectedObject (hobj As Long) As Object

Part

hobj

Description

Required. Long variable by ref. Function populates it with unique index. Later, this index may be used in the function DeleteObject to delete the object from view.