xlsread error
이전 댓글 표시
I recently switched from laptop to desktop, and installed matlab R2011b on my desktop. Something went wrong when I ran the following code:
Price=xlsread(FileName,PriceTabName,PriceRangeName);
(where FileName, PriceTabName, PriceRangeName are names of my Excel 2007 spreadsheet, tab and range, respectively).
The error message is: Error: The object invoked has disconnected from its clients. Error in xlsread (line 250) format = ExcelWorkbook.FileFormat;
But my code used to run OK on my previous laptop under version R2011a. It also runs fine when I tried it on another desktop with R2011a version as well. Not sure what caused the problem...
댓글 수: 1
Image Analyst
2011년 10월 11일
Are you sure that's all you're doing? You don't have another copy of Excel that you opened via ActiveX or anything, and then shut down? You only have this one call that has anything whatsoever to do with Excel?
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!