Solved

Enable a Custom MS Word Com Addin when .xa file extension is opened

Posted on 2014-01-07
4
28 Views
Last Modified: 2016-04-29
Hey All,

I have a little problem. We have a  custom Com Add in that must be loaded in MS Word so as it is able to launch .xa files from another application for editing.
The problem is that this add in is now causing problems when another application launches certain types of word documents.

What im wondering is, is there a way for me to set that this .xa com add in is only loaded when the .xa file is launched???
0
Comment
Question by:AGOIT
4 Comments
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 500 total points
ID: 39762526
There are some VBA methods that will add or remove an add-in with respect to the known  add-ins collections and set its installed status:
   
     AddIns( "C:\Templates\MyTemplate.dot" ).Installed = True
 
    AddIns( "C:\Templates\MyTemplate.dot" ).Installed = False

    AddIns( "C:\Templates\MyTemplate.dot" ).Delete

Open in new window


If you create a new Document from your .xa template file, you could set the installed status to True in the Document_New event of the ThisDocument module. There isn't a corresponding Document_Close event, but you could use an AutoClose macro in the template to set the property to False.
0
 
LVL 15

Expert Comment

by:DrTribos
ID: 39763634
The OP mentions "another application" - it is not clear how many other applications are being used but I suspect it is only 1 other application?  Is that correct?

Is this other application always launching the files into word or can it be used to view the word documents - e.g. something like open office?
0
 
LVL 14

Expert Comment

by:frankhelk
ID: 41570971
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

733 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