Microsoft Office Forums

Go Back   Microsoft Office Forums > Microsoft Word > Word VBA

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 10-06-2017, 12:14 PM
DEsh DEsh is offline Windows XP Office 2013
Novice
 
Join Date: May 2017
Posts: 1
DEsh is on a distinguished road
Default One Content Control Checkbox checks another Content Control Checkbox

I have a form in Word 2013 that is 2 pages long and the basic information for the second page contains all the same basic information from the first page. The text fields are no problem and have copied over fine using bookmarks. However, there are 5 checkboxes that if checked on the first page, I need them to be checked on the second page. They are named as follows:

First Page Second Page
C1 C2


VCI1 VCI2
CI1 CI2
PN1 PN2
PY1 PY2

I find all sorts of code available to make checkboxes mutually exclusive, but that isn't what I need and unfortunately, I don't have enough coding knowledge to modify that code to work in the opposite.

Any assistance would be greatly appreciated.
Reply With Quote
  #2  
Old 10-06-2017, 01:47 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 16,296
macropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to behold
Default

Your references to content controls, then to fields and bookmarks suggest you're using a mix of content controls and formfields; you shouldn't. Content controls and formfields were not designed to work together and you can cause problems when you do.

For repeating content control data, see 'Supporting repeating content' in: https://msdn.microsoft.com/en-us/lib...or=-2147217396
__________________
Cheers,
Paul Edstein
[MS MVP - Word]
Reply With Quote
  #3  
Old 10-06-2017, 08:23 PM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 2,163
gmayor is a jewel in the roughgmayor is a jewel in the roughgmayor is a jewel in the roughgmayor is a jewel in the rough
Default

You can map the content controls and cross reference them so they work as one when checked and unchecked. The content control version of http://www.gmayor.com/BookmarkandVariableEditor.htm makes this a simple task. If you want to explore what is possible with mapped content controls to a greater depth then Greg Maxey has a more sophisticated (but inevitably more complicated to get your head around) version which is linked from that page.

As for the content control/form field issue raised by Paul http://www.gmayor.com/ExtractDataFromForms.htm includes a tool to convert form fields to content controls.
__________________
Graham Mayor - MS MVP (Word)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
Reply

Tags
checkbox, contentcontrol
Please reply to this thread with any new information or opinions.

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Content control checkbox calculations allikat305 Word Tables 5 11-22-2016 11:20 PM
Show Userform when Content Control CheckBox ticked derajlance Word VBA 1 05-13-2016 01:55 PM
Clicking the selected Content Control checkbox returns wrong control in vba event DougsGraphics Word VBA 2 06-24-2015 07:31 AM
Replace checkbox symbol with check box content control canadansk Word VBA 5 04-01-2015 08:21 AM
Deleting a table from a content control -- preserving the content control BrainSlugs83 Word Tables 8 11-14-2013 03:06 AM


All times are GMT -7. The time now is 03:13 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
MSOfficeForums.com is not affiliated with Microsoft