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

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.
LSE_IT_TrainingAsked:
Who is Participating?
 
LSE_IT_TrainingConnect With a Mentor Author Commented:
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
 
Jeffrey CoachmanMIS LiasonCommented:
If this is a one shot deal, ...why not just copy the code manually?
0
 
LSE_IT_TrainingAuthor Commented:
Thanks for the response...

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

0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
Jeffrey CoachmanMIS LiasonCommented:
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
 
LSE_IT_TrainingAuthor Commented:
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
 
Jeffrey CoachmanMIS LiasonCommented:
ok
0
 
LSE_IT_TrainingAuthor Commented:
No other suggestions were suitable.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.