P
Pauly
I have a number of word templates which reference one or two other templates containing shared code (about 800 in total).
When I execute the templates I get an error message along the lines of "Compile error in hidden module".
If I go into the VBA editor and check the references to the templates they seem fine but the project will not compile. However, removing the references and then adding them back (using vbproject.references.addfromfile "FileString" where filestring was obtained by running activetemplate.vbproject.references(6).fullpath in the debug window seems to fix the problem.
My two questions are (1) does anyone know what is causing this to happen an
(2) Is there any way of opening a template programatically and checking to see if it compiles?
When I execute the templates I get an error message along the lines of "Compile error in hidden module".
If I go into the VBA editor and check the references to the templates they seem fine but the project will not compile. However, removing the references and then adding them back (using vbproject.references.addfromfile "FileString" where filestring was obtained by running activetemplate.vbproject.references(6).fullpath in the debug window seems to fix the problem.
My two questions are (1) does anyone know what is causing this to happen an
(2) Is there any way of opening a template programatically and checking to see if it compiles?