User`s guide

2 Programming with MATLAB Builder for Excel
Handle_Error:
foo = Err.Description
End Function
How the MCR Is Shared Among Classes
MATLAB Builder for Excel creates a single MCR when the first COM class
is instantiated in an application. This MCR is reused and shared among all
subsequent class instances within the component, resulting in more efficient
memory usage and eliminating the MCR startup cost in each subsequent
class instantiati on.
All class instances sha re a si ng le M ATLAB workspace and share global
variables in the M-files used to build the component. This makes properties of
a COM class behave as static properties instead of instance-wise properties.
2-8