What's the statement to invoke a macro within the active Word docu

Z

zl

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

Jonathan West

zl said:
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.

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top