How can I invoke the macro after select a document from New Dialo

B

Balaramaraju

Dear all,

I need to write a vc++ application . whenever my application starts
execution it start a MS Word application , After selecting a document from
New Dialog I need to Invoke my Macro.

My question is ,
How can I invoke the macro after select a document from New Dialog In MS
Word?

Note:- the macro invokes when ever word start from my vc++ application
 
J

Jean-Guy Marcil

Balaramaraju was telling us:
Balaramaraju nous racontait que :
Dear all,

I need to write a vc++ application . whenever my application starts
execution it start a MS Word application , After selecting a document
from New Dialog I need to Invoke my Macro.

My question is ,
How can I invoke the macro after select a document from New Dialog
In MS Word?

Note:- the macro invokes when ever word start from my vc++
application

Just (1) any document (based on any template), or only (2) some documents
based on specific templates shipped with your application?


If (1), inlcude the macro code in your C++ application.
If (2), inlcude the macro in the Document_New module in each specific
template (In their ThisDocument class module).

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
[email protected]
Word MVP site: http://www.word.mvps.org
 
Top