Re: Creating a macro in normal.dot from an external program using COM

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Francois Piette (francois.piette_at_overbyte.be)
Date: 08/05/04


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
> >
> >
>


Relevant Pages

  • Re: Where is Macro 64 in OpenVMS 7.3 Distribution?
    ... >We've got a package that requires Macro 64 to build. ... >tell me where I can locate the installation kit, and the PAK for this? ... Macro-64 was distributed on the OpenVMS Freeware V4 CDs. ...
    (comp.os.vms)
  • Re: Template into the users Word startup folder, macro name conflict
    ... pull the macro that it was created with even if there are confusing names. ... >> run in preference to a macro of the same name in the attached template. ... > Author of ICS (Internet Component Suite, freeware) ...
    (microsoft.public.word.vba.general)
  • Re: Creating a macro in normal.dot from an external program using COM
    ... don't need to create the macro by this means. ... copy a template into the user's Word startup folder. ... I know how to implement a VBA macro from my outside program using ... > Author of ICS (Internet Component Suite, freeware) ...
    (microsoft.public.word.vba.general)
  • Creating a macro in normal.dot from an external program using COM
    ... I have an external program that drive Word using COM. ... Now I would like this program to check if a given macro exists and if not, ... I know how to implement a VBA macro from my outside program using COM. ... Author of ICS (Internet Component Suite, freeware) ...
    (microsoft.public.word.vba.general)
  • Where is Macro 64 in OpenVMS 7.3 Distribution?
    ... We've got a package that requires Macro 64 to build. ... tell me where I can locate the installation kit, and the PAK for this? ... I've searched the FAQ and the freeware, and the only Macro 64 I could find ...
    (comp.os.vms)