Re: Creating a macro in normal.dot from an external program using COM
From: Francois Piette (francois.piette_at_overbyte.be)
Date: 08/05/04
- Next message: Diego Lotti: "Best way to import data from word."
- Previous message: Jezebel: "Re: Word table column"
- In reply to: Jonathan West: "Re: Creating a macro in normal.dot from an external program using COM"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 5 Aug 2004 14:14:10 +0200
> I really would recommend you don't do this. The newer versions of Word are
> set up by default to bar access to the object model for creating macros.
I'm using Word 2000 only.
> Therefore, if you don't have control of configuration of the systems where
> these macros will be created, in many cases you won't be able to create
the
> macro in the first place. If you *do* have control of the syetm, then you
> don't need to create the macro by this means.
I have control on the system but I have something like 500 systems to
update. I have a centralized, automated way to update the external
application but no way to update normal.dot on each of the computer. That's
my problem.
> In any case, normal.dot is the most unsafe place to put a macro. Instead,
> copy a template into the user's Word startup folder. Next time Word is
> started, any macros in the template will be availavle for use in the same
> way as macros in normal.dot.
That looks like a good solution for me. I'll experiment with this.
Thank you.
-- francois.piette@overbyte.be Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be > "Francois Piette" <francois.piette@overbyte.be> wrote in message > news:4111e6b8$0$320$4d4efb8e@read.news.be.uu.net... > > I have an external program that drive Word using COM. It works very well. > > Now I would like this program to check if a given macro exists and if not, > > create that macro and assign a keyboard shortcut to call it. > > > > I think the problem would be the same as to have a VBA macro doing the > same > > work. I know how to implement a VBA macro from my outside program using > COM. > > So if you know how a mcaro can create a macro, it's OK for me ! > > > > -- > > francois.piette@overbyte.be > > Author of ICS (Internet Component Suite, freeware) > > Author of MidWare (Multi-tier framework, freeware) > > http://www.overbyte.be > > > > >
- Next message: Diego Lotti: "Best way to import data from word."
- Previous message: Jezebel: "Re: Word table column"
- In reply to: Jonathan West: "Re: Creating a macro in normal.dot from an external program using COM"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|