Solved

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

Posted on 2010-11-30
7
893 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
Comment Utility
If this is a one shot deal, ...why not just copy the code manually?
0
 

Author Comment

by:LSE_IT_Training
Comment Utility
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
Comment Utility
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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:LSE_IT_Training
Comment Utility
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
Comment Utility
ok
0
 

Accepted Solution

by:
LSE_IT_Training earned 0 total points
Comment Utility
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
Comment Utility
No other suggestions were suitable.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

The System Center Operations Manager 2012, known as SCOM, is a part of the Microsoft system center product that provides the user with infrastructure monitoring and application performance monitoring. SCOM monitors:   Windows or UNIX/LinuxNetwo…
Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…
This video shows where to find templates, what they are used for, and how to create and save a custom template using Microsoft Word.

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now