Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Script to install and enable Add-ins on a Word template

Posted on 2010-11-30
7
Medium Priority
?
908 Views
Last Modified: 2012-05-10
I would like to set up a script to do the following but know very little about VBA - I'll pass any possible solutions on to someone who does;

A word 2010 document contains Macro Project Items, namely 5 modules, that I want to copy over to the Normal.dotm template.

The steps to replicate are as follows:

With the Word 2010 document open,
Select File - Options
Select Add-ins
Select Templates (from the drop-down alongside Manage)
Click Go
Click Organizer
Bring forward to Macro Project Items tab
Select the 5 modules
Copy over to Normal.dotm

Thanks very much.
0
Comment
Question by:LSE_IT_Training
  • 4
  • 3
7 Comments
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 34245099
If this is a one shot deal, ...why not just copy the code manually?
0
 

Author Comment

by:LSE_IT_Training
ID: 34247005
Thanks for the response...

My knowledge of VBA isn't great - what do you mean by copying the code manually?

0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 34254298
Well you stated that you wanted to copy 5 modules to the Normal.dotm file.

So just open the VBA editor and open the first module.
Then copy all of the code.
Then open the Normal.dotm file and open the VBA Editor.
Create a new modules with the same name as the original Module, and paste the code in.

Then repeat this for the other 4 modules.

Just a basic copy/Paste really...


JeffCoachman
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:LSE_IT_Training
ID: 34265453
Thanks again....

A script is necessary as the intention is to transfer the modules to the normal template on all pc's on the network.

So I'm assuming the copy/paste method wouldn't do the trick?

Thanks
Chris
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 34287980
ok
0
 

Accepted Solution

by:
LSE_IT_Training earned 0 total points
ID: 34472003
We found a solution as follows:

Made a template, containing those macro modules, available in the Word startup folder (similar solutions which I tweaked for our setup are here: http://social.technet.microsoft.com/Forums/en/word/thread/529a419f-3437-46a8-a7ca-d94e8cb149af and http://www.eggheadcafe.com/software/aspnet/35587495/create-and-distribute-addin.aspx) and make the location of the startup folder a trusted location so no further macro errors occur.
0
 

Author Closing Comment

by:LSE_IT_Training
ID: 34509893
No other suggestions were suitable.
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This collection of functions covers all the normal rounding methods of just about any numeric value.
Lost Word File? Eagerly, need it back? Read ahead; this File Recovery guide is for you.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

782 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question