LastError Property
The LastError property provides information about the most recent error reported by OLE. You may use this property to report an error from an OLEServer or ActiveXControl to a host application.
Application
Objects: ActiveXControl, OLEClient, OLEServer, Root