Repeating checkboxes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am creating a Word form with multiple copies containing REF fields in the
second copy so that when a user fills out the form field in the first page of
the form, those fields will be populated in the second. This form also has
checkboxes. Is there a way to link checkboxes from the first page so that
they are repopulated in the second page?
 
Hi =?Utf-8?B?am9uLm11bGxpY2hAd2FtdS5uZXQ=?=,
I am creating a Word form with multiple copies containing REF fields in the
second copy so that when a user fills out the form field in the first page of
the form, those fields will be populated in the second. This form also has
checkboxes. Is there a way to link checkboxes from the first page so that
they are repopulated in the second page?
No simple way, unfortunately. Any solution will require a macro. You could have
a macro, for instance, that executes when the user leaves the checkbox and
writes the current state of the checkbox to other form fields. Here's a bit of
sample code to give you an idea

Sub UpdateFormCheckboxes()
Dim bCheckState As Boolean
Dim doc As Word.Document

Set doc = ActiveDocument
bCheckState = Selection.FormFields(1).CheckBox.Value
doc.FormFields("Check2").CheckBox.Value = bCheckState
End Sub

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)
 
There are a number of ways to create and use clickable checkboxes in
documents / templates. Some require protected or locked forms, others do
not. Take a look at the Checkbox template available at
http://www.addbalance.com/word/download.htm#CheckboxAddIn for an exploration
of these. It also has a macro to replicate the contents of a formfield
checkbox in place of a REF field.

--

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.
 
Back
Top