Private Sub Document_ContentControlOnEnter(ByVal ContentControl _ You can then import these modules from your storage folder into your projects as required. Using the Project Explorer pane you can right click and export each module to a folder on your PC. !! They are available in the demonstration and examples document that you can download using the link at the bottom of this tips page. The "Main" and "Accessibility" modules contain code developed by Word MVP Tony Jollans. One way to kill the bug is to import two standard code modules "Main" and "Accessibility" in each project that contains content controls and a call in the Document_ContentControlOnEntry and Document_ ContentControlOnExit event procedures as shown below: If you don't have Word 2010/2013, you simply have to kill the bug. Fortunately it has been resolved in Word 2010. Microsoft has failed miserably in resolving this issue and support Word 2007 users. This requirement makes serious validation of content controls entries using the OnExit event practically impossible!! This has been an issue since the application was released nearly 10 years ago. Things will continue to work as long as the Home tab is not the active tab. This time before you click CC1, click the "Developer" tab. The bug is associated with the active state of the Home tab and the presence of the "Cut" command in the Clipboard group of that tab.Ĭlose and reopen the document again. When you reopened the document the "Home" tab is active ("Developer" tab is no long the active tab). What's going on?!! You simply entered CC1 but the Exit event appeared to fire. You will see the appropriate message box display as expected.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |