E
epigram
I have a Word 97 template file (i.e. .DOT file) that is on a particular PC
in our office. The template uses VBA to connect to an Access database
(located
on a server share) and creates a document based upon some data. When I
simply move the particular .DOT file to any other PC and try to create a new
file using that template, part of the code fails. When I launch the VBA
editor for the template file on the working PC there are several items that
I can see that I cannot see when I launch the VBA editor for the template on
any other PC:
1) A Modules node under the Normal node that has two modules in it. I can
click on these and examine the code.
2) Three additional TemplateProject folders. Although, when I try to view
the code for these TemplateProject folders I get a dialog box that says
"Project is unviewable".
I can tell, based upon the name of one of the TemplateProject folders, that
the template VBA code fails (it's a call to WordBasic.Call) on every other
PC because these TemplateProject folders (as well as the aforementioned
Modules) don't seem to exist on those PCs. So, my basic question is why can
I see these VBA project elements on the working PC, but not on any other
PCs? I assume there must be some files and/or environment settings on the
working PC. Any help would be much appreciated.
Thanks.
in our office. The template uses VBA to connect to an Access database
(located
on a server share) and creates a document based upon some data. When I
simply move the particular .DOT file to any other PC and try to create a new
file using that template, part of the code fails. When I launch the VBA
editor for the template file on the working PC there are several items that
I can see that I cannot see when I launch the VBA editor for the template on
any other PC:
1) A Modules node under the Normal node that has two modules in it. I can
click on these and examine the code.
2) Three additional TemplateProject folders. Although, when I try to view
the code for these TemplateProject folders I get a dialog box that says
"Project is unviewable".
I can tell, based upon the name of one of the TemplateProject folders, that
the template VBA code fails (it's a call to WordBasic.Call) on every other
PC because these TemplateProject folders (as well as the aforementioned
Modules) don't seem to exist on those PCs. So, my basic question is why can
I see these VBA project elements on the working PC, but not on any other
PCs? I assume there must be some files and/or environment settings on the
working PC. Any help would be much appreciated.
Thanks.