E
ewout.boter
I have made a function to create a merged document. The merge can be
started from an application running on an iSeries server (a.k.a. AS/
400). The application first assembles some data, writes it to a comma-
separated file, and then uses a command to start Word. The -m switch
is used to automatically start a macro that will run the merge. When I
do this, the merged document is displayed on screen and can be printed
(or modified, if necessary) by the user. This is exactly what should
happen. However, the main document (the template for the merge) is
also opened. This is NOT what should happen. The user should just get
the merged document on screen. I have messed around a bit in VBA, but
I have not yet found a way to suppress the displaying of the main
document. I hope somebody can help me out!
Thanks in advance,
Ewout
started from an application running on an iSeries server (a.k.a. AS/
400). The application first assembles some data, writes it to a comma-
separated file, and then uses a command to start Word. The -m switch
is used to automatically start a macro that will run the merge. When I
do this, the merged document is displayed on screen and can be printed
(or modified, if necessary) by the user. This is exactly what should
happen. However, the main document (the template for the merge) is
also opened. This is NOT what should happen. The user should just get
the merged document on screen. I have messed around a bit in VBA, but
I have not yet found a way to suppress the displaying of the main
document. I hope somebody can help me out!
Thanks in advance,
Ewout