对啊。我是再次引用啊。但就是有这个问题。我再网上再找了下,应该就下面说的原因。
Error in VBA :ActiveX component can't create object.
原因:1、没有注册工程DLL
2、在系统路径上的某个地方存在不兼容的matlab DLL
解决方法:如果没有注册,打开doc 将路径改为<project> \distrib,<projetdir>表示com组件位置,并运行 mwregsvr <projectdll>.dll
Error in VBA Project:Automation error the specified module could not be found.
原因:matlab没有位于系统路径上
解决方法:将<matlabroot>\bin\win32放在系统路径上
LoadLibrary("component_name__1_0.dll") faild_The specified module could not be found
原因:从doc提示符中注册工程DLL 时,matlab不再系统路径上
解决方法:将<matlabroot>\bin\win32放在系统路径上