xlsread error

  • Follow


Hello!

I have been using xlsread to read from .xlsx files.

Now suddenly my code is giving the following error. It looks like error from the COM.

??? Invoke Error, Dispatch Exception:
Source: Microsoft Office Excel
Description: Open method of Workbooks class failed
Help File: C:\Program Files\Microsoft Office\Office12\1033\XLMAIN11.CHM
Help Context ID: 0

Error in ==> xlsread at 250
    ExcelWorkbook = Excel.workbooks.Open(file,0,true);

I have restated MATLAB and Windows to no avail. I couldn't find any past threads covering this topic. I hope someone suggests me the solution as i really do not want to reinstall MATLAB and Excel.
0
Reply Sunil 1/21/2010 4:55:05 AM

"Sunil " <sunil.ad.24@gmail.com> wrote in message <hj8mn9$p3u$1@fred.mathworks.com>...
> Hello!
> 
> I have been using xlsread to read from .xlsx files.
> 
> Now suddenly my code is giving the following error. It looks like error from the COM.
> 
> ??? Invoke Error, Dispatch Exception:
> Source: Microsoft Office Excel
> Description: Open method of Workbooks class failed
> Help File: C:\Program Files\Microsoft Office\Office12\1033\XLMAIN11.CHM
> Help Context ID: 0
> 
> Error in ==> xlsread at 250
>     ExcelWorkbook = Excel.workbooks.Open(file,0,true);
> 
> I have restated MATLAB and Windows to no avail. I couldn't find any past threads covering this topic. I hope someone suggests me the solution as i really do not want to reinstall MATLAB and Excel.

I have been havint the same problem but with xlswrite.  I can read a .xlsx file just fine, but I cannot write one.
0
Reply sinusoid2 (163) 2/22/2010 5:50:21 PM


1 Replies
1028 Views

(page loaded in 0.054 seconds)

Similiar Articles:













7/23/2012 6:30:44 AM


Reply: