Re: Is it possible to call and use MSWORD in command line mode? by MK
MK
Tue Sep 20 21:39:02 CDT 2005
Hello Helmut Weber,
Thanx for yout reply, actually I would like to do a integration with the
office compare and merge function(include excel, word, powerpoint...) with my
vb application, so that the client only need to select the documents from my
vb program, and my vb program will do the jobs and launch the result for the
client. But if it does not support command line with function call, do you
have any suggestion on how to automate the works?
like:
1) setup a templete for word with auto start macro
2) program the vb to copy the source file to the templete word file
3) use command line to launch the templet word
would it work this way?
Thanx
MK
"Helmut Weber" wrote:
> Hi MK,
>
> this has often been discussed,
> and I haven't seen a simple solution.
>
> I'd try to start word with a macro,
> like winword /mMycompare.
>
> Put the names of the files to be compared
> in a txt-file. Have the macro read the txt-file,
> do the comparison and so forth.
>
> >but instead of opening the word application to complete the task, is
> >there anyone know how to do it in command line mode?
>
> Word would be started anyway.
>
> If You are somewhat familiar to VB,
> it's as easy as that.
>
> --
> Greetings from Bavaria, Germany
>
> Helmut Weber, MVP WordVBA
>
> Win XP, Office 2003
> "red.sys" & Chr$(64) & "t-online.de"
>
>
>
>
>