Xlswrite catching an error (Error: Call was rejected by the callee)
10 ビュー (過去 30 日間)
古いコメントを表示
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
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
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 件のコメント
Guido Travaglini
2019 年 6 月 1 日
Don't leave the Excel data file open when invoking it through Matlab in xlsread.
参考
カテゴリ
Help Center および File Exchange で Spreadsheets についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!