subroutines not working

J

joep3

I've inherited some templates to automate and added userforms and code. In
one template when I open the template document and press formfields to fire a
userform, everything works fine. When I create a new document off the
template the formfields have lost the reference to the macro procedure.
Since I have one template working find creating new documents off a template,
I made a copy of the working template, deleted all code and forms and copied
the forms over with the code. It still does the same thing. All my
subroutines are public in the macro and there is a reference to the
normal.dot and all other references martch. Any ideas as to why this is
happening?
 
D

Doug Robbins - Word MVP

Are you sure that the macros are in the template from which the new document
is being created?

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
C

Charles Kenyon

You might want to ask this in one of the vba newsgroups. I would suggest
posting the code.

Formfields is not a regular Word command and may be where you are missing
the code. It is likely a custom toolbar menu entry and the code may be
located other than in your template.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide




--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
J

joep3

No they were not being inherited from the template. Fortunately I ran open
and repair a number of differnet ways and the problem was fixed. Evidently
there was a corrption of some sort. Thanks for the reply!
 

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