Solved

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

Posted on 2010-11-30
7
900 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
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
The viewer will learn how to make their project stand out over others by learning how to change colors and shapes, add spaces, change directions, and add bullets to their charts.
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…

770 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