Running Word Macro from iSeries

R

Romine

I've created a Document Template that contains a Macro. This Macro
reads a file from the iSeries and populates bookmarks within the
Template and prints the Document. Currently, the user has to open the
document, click Tools, Macro's, Marco's, Run to produce the report;
very messy. I want to fire off the document from the iSeries so the
user doesn't have to mess with Word.

I'm able to bring the document up from the iSeries, but it's not
running the macro. I've tried everything I can think of, including
things on this board and others.

My code is running in an ILE program. I'm loading the command line
from an array. My array looks like: STRPCCMD PCCMD('C:
\Progra~1\Micros~3\OFFICE11\winword
O:\COMMON\TEMPLATES\MQE*.* /mMQE()') . Everything works fine up to
the /m.

My document is MQE Letters.dot, and the Macro is MQE. In addition to
the /m, I've also tried Call MQE, Call "MQE", Application.Run
MacroName:="MQE", Run MacroName:="MQE", Call MacroName:="MQE"....the
list goes on.

Any help would be GREATLY appreciated.
 

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