Checkbox problem, new document from template HELP!

  • Thread starter Thread starter Dan
  • Start date Start date
D

Dan

I have created 2 employee review form templates which have basic form
fields for data input and some checkboxes. These forms have a lot of
tables on them, so I need to have them protected (so things don't shift
around as you tab through it). I used some code to make sure the user
can only select one checkbox for a given group of checkboxes, like so:

Private Sub PERFO2_Click()
If PERFO2.Value = True Then
PERFA2.Value = False
PERFM2.Value = False
PERFI2.Value = False
PERFB2.Value = False
End If
End Sub

This works perfectly when creating a new docment from the first
template, but for some odd reason the VB script is being ignored when I
try making a new document from the 2nd template! It works properly when
opened directly (using the .dot file) but as soon as I try to make a
new document from it, it ignores the reference to the templates code. I
need to get both of these forms out into production asap, can someone
please help!? This has been driving me nuts for days! I'll send you the
file to show you what I mean if necessary! thanks!
 
How did you create the second template? From a document based on the first
template and Save As? This won't transfer code to the second 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.
 
Hi, thanks for reading my post. No, the 2nd template was created from
scratch. For the life of me I can't figure out what is wrong here.
There isn't that much to the file, a little more than the first
template but it's all the same...just text form fields and checkboxes.
And as I mentioned before, the form works correctly if I have it open
directly...it's as soon as I start a new document from it that it
decides to stop working. In VB for the new document I even see the
template under "References" as I should, it's ignoring the
"ThisDocument" code though!
 

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

Back
Top