This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Handle to running instance of MATLAB Automation server


c = actxGetRunningServer(progid)



c = actxGetRunningServer(progid) gets a reference to a running instance of the OLE Automation server. Returns a handle to the default interface of the server.

If the server specified by progid is not currently running or if the server object is not registered, then the function returns an error. If multiple instances of the server are running, then the operating system controls the behavior of this function.


collapse all

c = actxGetRunningServer('Excel.Application');
list = fieldnames(c);

Input Arguments

collapse all

Programmatic identifier, specified as a string or a character vector.

The control or server vendor documentation specifies the ProgID. For MATLAB® progid values, see Programmatic Identifiers.

Example: 'Matlab.Application'

Output Arguments

collapse all

COM object, returned as a function handle.


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

Introduced in R2007a