Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / September 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
zl - 05 Sep 2007 04:20 GMT
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

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.