Xlswrite catching an error (Error: Call was rejected by the callee)

조회 수: 9 (최근 30일)
Lisa Wu
Lisa Wu 2013년 7월 4일
댓글: Patrick Mirek 2022년 2월 22일
Hello,
I am using xlswrite to import data(250,1) into an existed *.xlsm file; Several days ago, xlswrite worked normally, but now it keeps stopping after catching the following error:
"Warning: the following error was caught whilst using the onCleanup class destructor:" "Error: Call was rejected by the callee"
Any suggestions as to why this is happening and how to fix it would be greatly appreciated.
Thank you.
Lisa
  댓글 수: 1
Patrick Mirek
Patrick Mirek 2022년 2월 22일
I got this error when I moved my App Designer functions to a different folder. When I went back in the original folder and ran those functions, the error was gone.

댓글을 달려면 로그인하십시오.

답변 (1개)

Shashank Prasanna
Shashank Prasanna 2013년 7월 4일
This seems to be an error on the Excel side. xlswrite relies on Excel to push data into an excel file and uses the COM interface to do so.
Searching for this error message on google returns several links to Excel failing with this error. Maybe one of those workarounds may be of help.
If not try a simple restart MATLAB and excel and try again.
  댓글 수: 2
Lisa Wu
Lisa Wu 2013년 7월 4일
1、Restart matlab and excel can not eliminate such error ; 2、There are few message about this error ; 3、if I import data into an newly created file ,such as *.xlsx ,it doesn't appear above error.
Thank you.
Guido Travaglini
Guido Travaglini 2019년 6월 1일
Don't leave the Excel data file open when invoking it through Matlab in xlsread.

댓글을 달려면 로그인하십시오.

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by