filipne
MIS
- Feb 3, 2008
- 5
Hi,
I do not seem to find a solution for the following:
I need to have VBA code on a document based on a certain template that verifies whether the template is available and if its it should call a Sub from it(the template).
In the document I have code that can detect a missing reference (in this case the template) and I have a call to a function from the template in case the template is available.
The thing is that whenever the template is unavailable, I get compile error at the row where the call to the template's function is made. This is a compile error not execution error. Template availability check code works fine and detects the absence of the template.
I noticed that when the template is not available Thisdocument.Attachedtemplate shows to be changed from the missing template's name to Normal.dot. Indeed, Normal.dot appers in the reference list of the Document's project along with "MISSING:" + the missing template name.
Any help is greatli appreciated!
I do not seem to find a solution for the following:
I need to have VBA code on a document based on a certain template that verifies whether the template is available and if its it should call a Sub from it(the template).
In the document I have code that can detect a missing reference (in this case the template) and I have a call to a function from the template in case the template is available.
The thing is that whenever the template is unavailable, I get compile error at the row where the call to the template's function is made. This is a compile error not execution error. Template availability check code works fine and detects the absence of the template.
I noticed that when the template is not available Thisdocument.Attachedtemplate shows to be changed from the missing template's name to Normal.dot. Indeed, Normal.dot appers in the reference list of the Document's project along with "MISSING:" + the missing template name.
Any help is greatli appreciated!