The statement for MATLAB invokes a macro that has been
defined within the active Excel spreadsheet file
is:handle.ExecuteExcel4Macro('!macroname()'),but I can't
find the correct statement for MATLAB invokes a macro that
has been defined within the active Word document, maybe it is one of word's
externatal interface functions as ActiveX Automation Server. please
help me.
Jonathan West - 05 Sep 2007 19:26 GMT
> The statement for MATLAB invokes a macro that has been
> defined within the active Excel spreadsheet file
[quoted text clipped - 4 lines]
> externatal interface functions as ActiveX Automation Server. please
> help me.
I think you need the Run method of Word's application object. Quite how the
syntax would look in MATLAB I don't know, but hopefully this is enough to
point you in the right direction.

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup