From: "Phil Goddard" <>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Hello,  I'd like to execute *.xls made by VBA in Matlab. Is it possible?
Date: Sun, 4 Nov 2012 16:21:08 +0000 (UTC)
Organization: Goddard Consulting
Lines: 11
Message-ID: <k764lk$ip3$>
References: <k6o42k$sa4$>
Reply-To: "Phil Goddard" <>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1352046068 19235 (4 Nov 2012 16:21:08 GMT)
NNTP-Posting-Date: Sun, 4 Nov 2012 16:21:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 26433
Xref: comp.soft-sys.matlab:781995

As other posters have mentioned, your question really doesn't make sense.

One interpretation not covered in other answers is that you want to execute a macro defined within a spreadsheet.
If so, then you need to to look at using the MATLAB-COM API (
The example for the actxserver function shows how to connect to Excel from MATLAB.
Then to execute a macro you'd need to use the Application.Run method.

An example of doing this from VBScript is given at
You'd need to read/understand/modify that to work from MATLAB.