This appendix provides a table showing errors you may encounter using MATLAB® Compiler™, probable causes for these errors, and suggested solutions.
Note: See the MATLAB Compiler documentation for more information about those messages. |
Errors, Warnings, Cause and Suggested Solutions
Message | Probable Cause | Suggested Solution |
---|---|---|
| The chosen compiler does not support building COM objects. | Rerun |
Error in | Usually caused by | Open a DOS window, change folders to See Add-In and COM Component Registration for full details. |
Error in VBAProject: ActiveX component can't create
object. |
| If the DLL is not registered, open a DOS window, change
folders to See Add-In and COM Component Registration for full details. |
Error in VBAProject: Automation error The specified
module could not be found. | This usually occurs if MATLAB is not on the system path. This error message occurs if you have more than one version of MATLAB on your system path. | Anytime you have multiple versions of MATLAB, ensure
that the newest version of MATLAB appears on your path first.
You can verify that the newest version of MATLAB is on the path
first by typing |
LoadLibrary | You may get this error message while registering the project DLL from the DOS prompt. This usually occurs if MATLAB is not on the system path. | See the table Required Locations to Develop and Use Components. |
Cannot recompile the M file | The name you have chosen for your MATLAB file duplicates the name of a MATLAB file already in the library of precompiled MATLAB files. | Rename the MATLAB file, choosing a name that does not duplicate the name of a MATLAB file already in the library of precompiled MATLAB files. |
Arguments may only be defaulted at the end of an argument
list. | You have modified the VB script generated for MATLAB Compiler and have not provided one or more arguments used in the modified script. | Provide a value for any argument that requires an explicit value. Arguments that accept defaults appear at the end of the argument list. |
Unable to use accessibility screen-readers or assistive technologies, such as JAWS®, | Required files JavaAccessBridge.dll and WindowsAccessBridge.dll no
longer added automatically to your Windows® path. | Add the following DLLs to your Windows path: JavaAccessBridge.dll WindowsAccessBridge.dll |
Error in | This is a generic message, but is sometimes seen when there are conflicts in architecture versions of MATLAB and Microsoft® Excel®. | See Deployment Target Architectures and Compatibility for detailed information. |
Error: | Different versions of the MATLAB Runtime and MATLAB results in the IMWDispatchDriver error. | Check for the current versions of MATLAB and the MATLAB Runtime. Verify the MATLAB version by typing the MATLAB path in DOS prompt. If the versions do not match update and install the new version of the MATLAB Runtime that matches the current MATLAB version. |
Error in VBA project: Method | Multiple versions of MATLAB running on the system results in this error. | Register the mwcomutil.dll and mwcommgr.dll registry
files. Open a DOS window, cd to |
Warning: File not found. Excel primary interop assembly
is not found. | Visual Studio® does not have Visual Studio Tools | Install Visual Studio Tools while installing Visual Studio to access all the files and package deployable archive with Excel Integration target. |
Component and Target Machine
Component | Development Machine | Target Machine |
---|---|---|
The MATLAB Runtime | Make sure that matlabroot \bin\win32 appears
on your system path ahead of any other MATLAB installations. ( matlabroot is your root MATLAB folder.) | Verify that mcr_root \ver \runtime\win32 appears
on your system path. ( mcr_root is
your root the MATLAB Runtime folder.) |
Error, Cause, and Solutions
Message | Probable Cause | Suggested Solution |
---|---|---|
The macros in this project are disabled. Please refer to the
online help or documentation of the host application to determine
how to enable macros. Note: Wording may vary depending upon the version of Excel you are running. | The macro security for Excel is set to | Set Excel macro security to
|
Problems, Cause, and Suggested Solutions
Problem | Probable Cause | Suggested Solution | |
---|---|---|---|
The Function Wizard Help does not appear. | The Function Wizard Help file ( | Copy the Help file ( | |
The Function Wizard did not automatically import your | The Function Wizard has malfunctioned with an unspecified error |
| |
You get an error when trying to create a macro with the Function Wizard | |||
The message | This message may appear if you manually terminate the MATLAB session that is invoked from the Function Wizard. As a result, you can no longer use the wizard's MATLAB related features in your current Excel session. | Save your work and restart Microsoft Excel. | |
When I use CTRL + arrow keys to select ranges with the Function Wizard, once I select a function and begin to select the function inputs, keyboard navigation no longer works in excel. | This behavior results from a bug in Microsoft Excel. | If you must use arrow keys to select ranges, apply the following fix from the Microsoft Web site: http://support.microsoft.com/kb/291110 . |