This project has moved and is read-only. For the latest updates, please go here.

Missing word document references


After installing Chem4Word, all document references to Normal.dotm are replaced by references to Chem4Word.dotx. All my Word customizations are lost! The Add-In list for each document must now be reworked by hand. The install sequence should have added Chem4Word.dotm as a Global template so the base user template is not impacted.


MikeWill34 wrote Jul 29, 2016 at 4:48 PM

This issue is caused by the Chemistry gallery being stored in the template.

We are working on a mechanism to store the gallery elsewhere so that we don't have to replace Normal.dotx with Chem4Word.dotx.

StephenRDillon wrote Jul 29, 2016 at 6:21 PM

Since Chem4Word attaches itself as the primary template to every Word document that is opened, why not simply add Chem4Word.dotx as a Global template and leave the user specified template untouched?

MikeWill34 wrote Aug 2, 2016 at 8:52 AM

Hi Stephen,

As I mentioned earlier Chem4Word uses Chem4Word.dotx to store the gallery. I have looked at the code again and we store and re-call the gallery items as BuildingBlockEntries. As far as I can tell this can ONLY be done with a template which is attached, hence when a word document is opened the Add-In checks to see if the attached template is Chem4Word.dotx. If not it re-attaches it.

Sorry I don't think it is possible to store BuildingBlockEntries in a non attached template.


StephenRDillon wrote Aug 2, 2016 at 7:22 PM

That is too bad. I cannot survive with an Add-In that always wants to be in charge and is happy to throw away the customer's working environment. For my purposes I can survive quite well by uninstalling Chem4Word and importing the chemical diagrams directly from
If you get this problem resolved, drop me a note and I will try it again. Thanks.

MikeWill34 wrote Aug 2, 2016 at 7:49 PM

We are thinking about have an option to prevent the attaching of our template, but this will disable the gallery and has to be thoroughly tested.

We will keep this thread updated with progress.

MikeWill34 wrote Aug 3, 2016 at 8:31 PM

Hi Stephen,

If you want to try the latest version. We have added an a NEW option to allow the user to disable the changinging of the template to Chem4Word.dotx.

Disabling the attachement proved to be easier than I first thought.