From: Travis on
"Sunil " <sunil.ad.24(a)gmail.com> wrote in message <hj8mn9$p3u$1(a)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.