![]() |
|
#1
|
|||
|
|||
![]()
Hi, I found what I presume is a bug as follows:
' A bug that causes the Document_ContentControlOnExit to continuously trigger, which in my case, ' calls the RedoRib routine to refresh the ribbon which in turn causes the cursor to flicker, ' continuously. It occurs when entering a content control in the headers and footers only while the ' custom tab is active. ' It was tracked down and discovered that it occurs only when callbacks are included ' in the ribbon xml buttons for custom tabs. ' Effectively (strangely), the Document_ContentControlOnExit is repeatedly triggered. ' Further testing showed that getting the Range.Style property during the callback causes it. ' The fix was to change Range.Style to Range.Paragraphs(1).Style (strange!!). ' To repeat, only the controls in headers and footers caused the bug and only while the custom tab ' is active. ' Simply activating a different tab or clicking out of the control stops the bug. See the attached file. It also has some more info on the first (only) page. |
#2
|
|||
|
|||
![]()
I take it you are posting this as a solution to the problem, not looking for help. Is this correct? If so, thank you.
|
#3
|
|||
|
|||
![]()
Yes. I wanted to let others see this and see what their thoughts might be.
|
![]() |
Tags |
bug, contentcontrol, ribbon callback |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
ashleyf | Word VBA | 2 | 03-19-2020 09:11 AM |
![]() |
Photon | Word | 5 | 04-20-2019 04:22 AM |
![]() |
Rewster | Word | 2 | 05-12-2017 08:19 AM |
![]() |
sarineochaos | Word | 1 | 02-04-2014 06:15 PM |
![]() |
BrainSlugs83 | Word Tables | 8 | 11-14-2013 03:06 AM |