Each check box and optional user defined text content control must be tagged using the content control properties dialog with the prefix "optGrp," a group ID number and an item identifier.The key is the careful application of "tags" to your check boxes and the optional user defined text content controls. Your documents may have one or more mutually exclusive content control option button groups. Note: The optional "Other/Please Specify" shown in the video is a feature of Method 1 and the Add-In only. 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: 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. We want to hear from you! Please select Help > Feedback to submit your thoughts about this feature.Method 1 - Custom Document_ConentControlOnChange Event This feature is currently rolling out to all Word for the web users. Develop a checklist for new employee onboarding that include tasks such as paperwork completion, training sessions, and equipment setup.Create a checklist to track project tasks and milestones, and mark each one as completed as your team progresses, ensuring nothing is overlooked.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |