L
Lesley Regan
Hello, everyone. I have been searching for explanations online and in the
newsgroups, and have lots of pieces of information I can't quite fit
together, so apologies if explanations are plainly stated somewhere:
My system's Word version is XP. I have some inherited templates with
AutoNew macros that have converted to VB-compatible WordBasic commands upon
opening the templates and saving them in WordXP. The typical AutoNew macro
is now named Public Sub Main () within a Module named AutoNew that's in the
template.
Factors:
1. I inherited some old Word templates which are form documents with fields
to fill in. Users are prompted to supply values for each field with a prompt
supplied in the field code. There is no separate user form as such that is
part of the template.
2. An AutoNew macro is contained in a module in each template.
3. Upon creating a new document from a template, the autonew macro does not
run.
4. The VB Editor Project Explorer shows there's a Reference to Normal in
the template. (This is definitely the template, not the New Document). My
experience has been that a reference to normal results from abnormal closing
of word, or some other error, and causes problems in the template. I cannot
remove the Reference to Normal by unchecking the appropriate box.
Can anyone explain how to fix these templates so AutoNew runs?
How can I remove the reference to Normal?
Even if the result is that I have to create new templates, it would be
interesting to know what's behind the two issues I've described.
Thanks for any insights you might be able to offer about these issues,
Lesley --
newsgroups, and have lots of pieces of information I can't quite fit
together, so apologies if explanations are plainly stated somewhere:
My system's Word version is XP. I have some inherited templates with
AutoNew macros that have converted to VB-compatible WordBasic commands upon
opening the templates and saving them in WordXP. The typical AutoNew macro
is now named Public Sub Main () within a Module named AutoNew that's in the
template.
Factors:
1. I inherited some old Word templates which are form documents with fields
to fill in. Users are prompted to supply values for each field with a prompt
supplied in the field code. There is no separate user form as such that is
part of the template.
2. An AutoNew macro is contained in a module in each template.
3. Upon creating a new document from a template, the autonew macro does not
run.
4. The VB Editor Project Explorer shows there's a Reference to Normal in
the template. (This is definitely the template, not the New Document). My
experience has been that a reference to normal results from abnormal closing
of word, or some other error, and causes problems in the template. I cannot
remove the Reference to Normal by unchecking the appropriate box.
Can anyone explain how to fix these templates so AutoNew runs?
How can I remove the reference to Normal?
Even if the result is that I have to create new templates, it would be
interesting to know what's behind the two issues I've described.
Thanks for any insights you might be able to offer about these issues,
Lesley --