You write macros with those names.
Hi,
> > Dio you have any idea how to trap FileOpen, FileNew?
> > I search on google but could not find something.
> You write macros with those names.
Unfortunately I cannot do that, because I cannot create my DOC based on
some template (so to have macros in it), but I automate Word from an
external application.
Is there any way to create macros programatically in a Word DOC from an
by automating Word?
Or those FileOpen, FileNew, are they methods (events, etc) of some
chile object of word.application object. Do you know such object ?
If so, I can "bind" those events / methods to custom methods in my code
so I can trap them this way.
Regards,
Bogdan
> > Hi,
> >
[quoted text clipped - 40 lines]
> >> > Thank you
> >> > Bogdan Zamfir
Jezebel - 06 Sep 2006 00:31 GMT
> Is there any way to create macros programatically in a Word DOC from an
> by automating Word?
This is technically possible (using the methods of the VBE object) but in
practice hard to do and usually blocked by the security settings.
> Or those FileOpen, FileNew, are they methods (events, etc) of some
> chile object of word.application object. Do you know such object ?
No, it doesn't work that way.
Since you have to install your application on the target computer, why can't
you at the same time install an add-in that contains the necessary code?