Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / August 2007

Tip: Looking for answers? Try searching our database.

Convert MS Word Macro into .bat or .exe

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
koryklein@gmail.com - 18 Aug 2007 00:17 GMT
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?
Doug Robbins - Word MVP - 18 Aug 2007 00:27 GMT
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.

Signature

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

> Hello,
>
[quoted text clipped - 17 lines]
> Visual Basic Editor under Tools --> References.  Can this option be
> set by a script or macro?

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.