From: Alexandre on
Hi,

I had the same problem, and solved it by putting a semi-colon after the statement (as in MLEvalString "Test;"). Apparently this problem was occuring for me when the output of the function called was to big to be handled...

"Sriram Bajrang Bulusu" <sriram.bajrang.bulusu(a)sap.com> wrote in message <h6ilpu$spl$1(a)fred.mathworks.com>...
> Dear Alan,
>
> I got the same error sometime back. It will be a great help if you could let me know how you got over this error.
>
> Thanks,
> Sriram Bajrang
>
> "Alan Leung" <twaleung(a)engmail.uwaterloo.ca> wrote in message <ftlbnu$4at$1(a)fred.mathworks.com>...
> > Hi,
> >
> > I execute a Excel VBA such that it execute Matlab program.
> > I receive an error message saying that:
> >
> > "Method 'Execute' of object 'DIMLApp' failed"
> >
> > and the error points to this line:
> >
> > MLEvalString "Test"
> >
> > where Test.m is the Matlab program that I would like to
> > execute.
> >
> > Why did that happen? Is there any solution for this error?
> >
> > Thanks,
> >
> > Alan