Main Content


List of events COM object can trigger



S = events(c) returns information about registered and unregistered events for COM object c.

COM functions are available on Microsoft® Windows® systems only.


List Workbook Events

Open a Microsoft Excel® application and list all events for a Workbook object.

myApp = actxserver('Excel.Application');
wbs = myApp.Workbooks;
wb = Add(wbs);

Input Arguments

collapse all

COM object, specified as a function handle.

Output Arguments

collapse all

Information about registered and unregistered events known to the COM object, returned as a structure array. The array contains the function prototype used to call the event handler routine. For each array element, the structure field is the event name and the contents of that field is the function prototype for the handler of that event.

Version History

Introduced before R2006a