error message: what is going on?

Dear all,
I use matlab 2011.
I get the following error message
Error using
Interface.000208DB_0000_0000_C000_000000000046/Open
Invoke Error, Dispatch Exception:
Source: Microsoft Excel
Description: Microsoft Excel cannot access the file
'C:\wow2\oio.xlsx'.
There are several possible reasons:
The file name or path does not exist.
The file is being used by another program.
The workbook you are trying to save has the same name as a
currently open workbook.
Help File: xlmain11.chm
Help Context ID: 0
Error in xlsread (line 248)
ExcelWorkbook = Excel.workbooks.Open(file,0,true);
I am trying to merge 46 excel files. the total size of the merged file is 5 milions rows by 25 columns.
could you tell me what the problem is?
thanks

댓글 수: 6

per isakson
per isakson 2013년 5월 10일
편집: per isakson 2013년 5월 10일
The error message includes three possible reasons. Why is it not one of these? Did you try to use a different name like, test17.xlsx?
I tried to reboot my pc. When I run the same code I got this new message
Error: Not enough storage is available to complete this
operation.
Error in xlsread (line 313)
rawData = DataRange.Value;
I use matlab 2011 64-bit Is there a way to resolve the problem?
thanks
Friedrich
Friedrich 2013년 5월 10일
This is an out of memory error in the excel side. You need to read a smaller range. For your overall purpose I would suggest writing your own code using EXCEL through COM.
antonet
antonet 2013년 5월 10일
편집: antonet 2013년 5월 10일
Is there any way to "fix" it within Matlab?
vcmorini
vcmorini 2017년 1월 31일
News on this post? Having the same issue here!
John D'Errico
John D'Errico 2017년 1월 31일
편집: John D'Errico 2017년 1월 31일
IF the error is coming from Excel, not from MATLAB, then you cannot fix it in MATLAB. You need to be looking at Excel for this.

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

답변 (0개)

카테고리

태그

질문:

2013년 5월 10일

편집:

2017년 1월 31일

Community Treasure Hunt

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

Start Hunting!

Translated by