![]() |
|
|
|
#1
|
||||
|
||||
|
If you provided the existing code along with a sample doc it would be easy enough to provide you the relevant code modifications. In the absence of that, your code could cycle through a collection of Content Controls and create a function that processes each ticked CC based on the page it resides on.
Code:
Sub ProcessPages()
Dim aCC As ContentControl
For Each aCC In ActiveDocument.ContentControls
If aCC.Checked Then
MsgBox "This page has a checked CC: " & aCC.Range.Information(wdActiveEndPageNumber)
End If
Next aCC
End Sub
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
#2
|
|||
|
|||
|
I'm happy to supply a sample doc with code.
how do I do that? Thanks |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Check Boxes Not Displayed via MailMerge CheckBox Insertion code
|
JennEx | Mail Merge | 2 | 05-28-2019 05:55 PM |
One Content Control Checkbox checks another Content Control Checkbox
|
DEsh | Word VBA | 2 | 10-06-2017 08:23 PM |
| Copy ActiveX-Checkbox with code | DanielM125 | Word VBA | 0 | 06-04-2015 12:49 AM |
Uncheck Checkbox Code not working if document protected
|
bandrist | Word VBA | 2 | 08-14-2013 09:02 AM |
| Excel ->VB code for Checkbox (control toolbox) | kirkstyle | Excel | 0 | 08-16-2006 04:17 PM |