Templates, Control Object Events - Click; ThisDocument Module

T

Troy Zeleznik

I'm creating templates for my employer-engineering
company. The templates automate our engineering design
documentation process. I'm trying to design a "TECHNICAL
REQUEST" document (based on a template). I allow the USER
to customize the resultant child-document per specific
project scope. I do this by firing off a number of
USERFORMS from the "Private Sub Document_New()"
programming area residing in the template. This works
fine to get the document into project specific shape.
However, now I'd like to allow the document to dynamically
adapt to project requirements though the use of
the "CONTROL OBJECTS" found in the WORD CONTROL TOOLBOX
{checkboxes, listboexs, etc}. I can see that the "EVENT"
code is stored in the "ThisDocument" module and I can
verify the programming executes properly (in the opened
template). However, when I open a NEW document based on
the template, I get the document objects correctly
positioned in the document body but I don't get the
accompanying object coding. What I get is a
blank "ThisDocument" module for the new Document. Is
there a way of propagating the object coding into the NEW
document? My intent is for the object event code to
optimize and customize the document. The document, passed
between engineering and our customer, will be a vehicle of
record keeping and a means of concise communications.

I'm open to the possibility I'm going about solving my
problem along an incorrect path.
If that's the case, your re-direction is appreciated.

Thanks for taking the time, Sincerely, Troy Zeleznik,
(WORD 97 & 2000 on WIN2k)
 
W

Word Heretic

G'day "Troy Zeleznik" <[email protected]>,

replied to in another topic.


Troy Zeleznik said:
I'm creating templates for my employer-engineering
company. The templates automate our engineering design
documentation process. I'm trying to design a "TECHNICAL
REQUEST" document (based on a template). I allow the USER
to customize the resultant child-document per specific
project scope. I do this by firing off a number of
USERFORMS from the "Private Sub Document_New()"
programming area residing in the template. This works
fine to get the document into project specific shape.
However, now I'd like to allow the document to dynamically
adapt to project requirements though the use of
the "CONTROL OBJECTS" found in the WORD CONTROL TOOLBOX
{checkboxes, listboexs, etc}. I can see that the "EVENT"
code is stored in the "ThisDocument" module and I can
verify the programming executes properly (in the opened
template). However, when I open a NEW document based on
the template, I get the document objects correctly
positioned in the document body but I don't get the
accompanying object coding. What I get is a
blank "ThisDocument" module for the new Document. Is
there a way of propagating the object coding into the NEW
document? My intent is for the object event code to
optimize and customize the document. The document, passed
between engineering and our customer, will be a vehicle of
record keeping and a means of concise communications.

I'm open to the possibility I'm going about solving my
problem along an incorrect path.
If that's the case, your re-direction is appreciated.

Thanks for taking the time, Sincerely, Troy Zeleznik,
(WORD 97 & 2000 on WIN2k)

Steve Hudson

Word Heretic, Sydney, Australia
Tricky stuff with Word or words for you.
Email: (e-mail address removed)
Products: http://www.geocities.com/word_heretic/products.html
Spellbooks: 728 pages of dump left and dropping...

The VBA Beginner's Spellbook: For all VBA users.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top