#1
|
|||
|
|||
Content Control Bug in Headers and Footers caused by Ribbon XML Callback
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
|
|||
|
|||
Not a Question
Yes. I wanted to let others see this and see what their thoughts might be.
|
Tags |
bug, contentcontrol, ribbon callback |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Content Control Dropdowns - How to duplicate the content control and allow a second choice | ashleyf | Word VBA | 2 | 03-19-2020 09:11 AM |
Control A does not select some footers and some headers | Photon | Word | 5 | 04-20-2019 04:22 AM |
too many clicks with ribbon - ribbon content disappears | Rewster | Word | 2 | 05-12-2017 08:19 AM |
Odd and Even Headers/Footers | sarineochaos | Word | 1 | 02-04-2014 06:15 PM |
Deleting a table from a content control -- preserving the content control | BrainSlugs83 | Word Tables | 8 | 11-14-2013 03:06 AM |