Associate event handler for COM object event at run time
c— COM object
COM object, specified as a function handle.
eventhandler— Function to call when event occurs
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.