> I am invoking word from another application.
>
[quoted text clipped - 74 lines]
> > > > >or
> > > > > scripting. Any assistance is greatly appreciative.
What is the difference with what you wrote
Set WordAppPointer = CreateObject("Word.Application")
> WordAppPointer.Documents.Open("name of document")
> WordAppPointer.Run "NameOfMacroInWord", "ParameterToMacro
and with what I found on google
Set objWord = CreateObject("Word.Application")
Set objDoc = objWord.Documents.Open("U:\My Documents\CCSI\Contract
Document\Contract Template.doc")
> You don't say what application or language you are using so it's difficult
> for me to say how you should do it or whether you should do it in Word
[quoted text clipped - 100 lines]
> > > > > >or
> > > > > > scripting. Any assistance is greatly appreciative.
Ishai Sagi - 23 Feb 2006 00:50 GMT
his code opens a document and then runs a macro that is in the
document.
what you found only opens a document.
both are viable options to what you are attempting to do (open a
document and change it). you can also use
"WordAppPointer.Documents.add" to create a new document instead of
opening an existing one.
If you have office 2003 or above, I guess what you should consider is
creating an XML schema for your document, create a template based on
that schema, and using the code, creating a new document based on that
template, and populating the xml nodes with the information from your
application.
What do you say?
> What is the difference with what you wrote
>
[quoted text clipped - 112 lines]
> > > > > > >or
> > > > > > > scripting. Any assistance is greatly appreciative.