Thread Subject: xlsread error

Subject: xlsread error

From: Sunil

Date: 21 Jan, 2010 04:55:05

Message: 1 of 2

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.

Subject: xlsread error

From: Travis

Date: 22 Feb, 2010 17:50:21

Message: 2 of 2

"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.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
invoke error Sunil 20 Jan, 2010 23:59:13
xlsread Sunil 20 Jan, 2010 23:59:13
excel Sunil 20 Jan, 2010 23:59:12
rssFeed for this Thread

Contact us at files@mathworks.com