- Single click checkbox in word how to#
- Single click checkbox in word code#
- Single click checkbox in word download#
Single click checkbox in word code#
Additional code is provided to facilitate an optional "Other/Please Specify" content control checkbox and corresponding plain text content control as shown in the video.When a check box of interest is checked, either by a mouse entry or monitored state change, the custom Document_ContentControlOnChange procedure is used to ensure all other content control check boxes with a similar tag group ID prefix are then unchecked.A separate monitor procedure is initiated to continuously monitor the content control of interest for any additional state change while the user is "in" the check box.This state change is immediately and automatically passed to the custom Document_ContentControlOnChange event procedure. Entering a check box content control using a mouse click triggers an automatic state change. A function is used to determine if the content control was entered by using a mouse click.Only check box content controls tagged using the prefix "optGrp" are are considered "of interest" and processed further.
The built-in Document_ContentControlOnEnter event is used to detect when a content control is entered and determine if it is a content control of interest.While the code may appear daunting to novices, it is really quite simple and works basically like this:
Single click checkbox in word download#
VBA code in the custom event procedure ensures that only one option button in a defined group can be in the checked state at any given time.Īll of the required VBA code is available in the "ThisDocument" module of the VB Project of the template which you can download using the link at the end of this tips page.
Method 1 employs an adaptation of my Content Control Custom Events technique, a careful convention for defining the content control "tag" property, and a little VBA wizardry.
Single click checkbox in word how to#
Here’s how to insert clickable check box into your Word document: Checkbox once clicked is checked and on second click it gets unchecked. Microsoft Word also allows you to insert check boxes that are clickable. Method 2: Insert Clickable Check Box in Word 2016 Next you can select the check box that is either checked or unchecked, and insert it into your Word document.