Convert MS Word Macro into .bat or .exe

K

koryklein

Hello,

I am trying to create an .msi or .exe which will install a new macro
and associated toolbar into the Normal.dot template of MS Word.

I currently have the macro and toolbar in a .dot file, with the macro
also in a .bas format.

I have been successful in creating a "install" macro within MS Word
that will install both the macro and toolbar, but it must be installed
and run within MS Word, hence the initial issue.

The soultion I have decided on is to create some sort of executable
containing the "install" macro code that installs both the toolbar and
macro.


Does anybody know how to do this? Is there a better way?

* Also, I need to enable the "Windows Script Host Object Model" in the
Visual Basic Editor under Tools --> References. Can this option be
set by a script or macro?
 
D

Doug Robbins - Word MVP

Save a template containing the toolbar and macro into the Word Startup
folder.

Ignore the Word 2007 part of the article at
http://www.gmayor.com/Toolbars_in_word_2007.htm to see how to create the
toolbars in a particular template.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top