Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2010-11-30
7
Medium Priority
?
907 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

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

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

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

This article describes how to use the Send to Mail Recipient command. The instructions apply generally to Office 2007 and later versions, but Microsoft® Word 2013 was used for the specific steps and figures.  What is Send to Mail Recipient? Send…
Article by: Leon
Software Metering within our group of companies has always been an afterthought until auditing of software and licensing became a pain point. Orchestrator and SCCM metering gave us the answer and it was an exciting process.
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 Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …

721 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