![]() |
|
|
|
#1
|
|||
|
|||
|
I'd like to program a message box to pop up when a checkbox content control box is checked.
I've worked with message boxes before, but not linked to a checkbox. Is there a way to have this happen? Thank you! |
|
#2
|
|||
|
|||
|
wolfgrrl.
Yes. First you have to map the content control to a customXMLnode. You can easily do that using the Content Control Tools addin from my website: Content Control Tools Assume you have mapped a checkbox titled "Check Test" then using this code in the ThisDocument module of the project, you can trigger a msgbox when the CC is checked. Code:
Private Sub Document_ContentControlBeforeContentUpdate(ByVal ContentControl As ContentControl, Content As String)
Select Case ContentControl.Title
Case "Check Test"
If ContentControl.Checked Then MsgBox "I'm checked"
End Select
End Sub
|
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Check box content control to show text when checked
|
Strogg | Word | 3 | 02-10-2019 11:45 AM |
Check if named Content Control field exists and add missing
|
sylvio | Word VBA | 2 | 08-29-2017 04:08 AM |
| Check Box Content Control when checked users are presented with an option | cryder | Word | 0 | 01-07-2016 05:11 AM |
Replace checkbox symbol with check box content control
|
canadansk | Word VBA | 5 | 04-01-2015 08:21 AM |
| Word2010 check boxes and plain text content control boxes in same table | fcsungard | Word | 5 | 06-01-2012 01:16 AM |