View Single Post
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Cindy M -WordMVP-
 
Posts: n/a
Default Repeating checkboxes

Hi ?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 :-)