How do I solve "Unable to start Excel server for import"?

조회 수: 3 (최근 30일)
翼
2024년 10월 28일
편집: Saurabh 2024년 10월 28일
I got the below error when I tried to execute the Simulink model.
I can figure it out but I'm not quite sure what exactly I should do.
What is the next step to the Simulink model?
I wonder if I need to install Microsoft Excel to my local PC.... I have a hunch, though....
Warning: Unable to start Excel server for import. basic' mode. See HELP XLSREAD for details.
Please refer to HELP XLSREAD for details.
> in xlsread (line 86)
In VCU_CNT_set_params (line 21)
In init_setting (line 25)
In run (line 112)
Error while using: xlsread (line 148)
Worksheet 'sheet1' not found.
Error: VCU_CNT_set_params (line 21)
VCU_CNT_trq_require_accper = xlsread('VCU_params.xlsx','sheet1','B2:I2');
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: init_setting (line 25)
VCU_CNT_set_params;
^^^^^^^^^^^^^^^^^^
Error: run (line 112)
evalin('caller', strcat(scriptStem, ';'));

채택된 답변

Saurabh
Saurabh 2024년 10월 28일
편집: Saurabh 2024년 10월 28일
Hi @翼,
I came across a similar discussion regarding this issue. In that case, the problem was that Excel was operating in a virtualized environment. It might be helpful to reinstall Office using a proper .msi installation instead of the click-to-run version.
The MATLAB answer thread can be found here:

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Reporting and Database Access에 대해 자세히 알아보기

태그

제품


릴리스

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by