• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 36
  • Last Modified:

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

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???
1 Solution
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.
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?
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
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.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now