Main Content


Associate event handler for COM object event at run time


registerevent(c,eventhandler) registers event handler routines with their corresponding events.

Input Arguments

collapse all

COM object, specified as a function handle.

Function to call when an event occurs, specified as a string or a character vector naming the function or a function handle that maps to that function. Strings and character vectors are not case-sensitive.


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

Version History

Introduced before R2006a