ActiveX server conflicts when running excel macro

조회 수: 8 (최근 30일)
Bob Feng
Bob Feng 2017년 2월 23일
편집: Bob Feng 2017년 2월 23일
I have built a simple GUI that simply runs a macro from a Excel sheet.
ExcelApp = actxserver('Excel.Application');
ExcelApp.Workbooks.Open(filename);
ExcelApp.Run('Run_Cases');
When I run the macro from Excel, it tried to get another object (unisim) but returned the following error:
"Run-Time Error 429: ActiveX Component Can't Create Object"
The macro runs fine on Excel alone (not accessing from MATLAB).
Could you please suggest how to solve this? I searched a bit and tried to re-register the MATLAB ActiveX server, but doesn't seem to work.
Thanks, Bob

답변 (0개)

카테고리

Help CenterFile Exchange에서 ActiveX에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by