Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-22-2022, 08:44 AM
VBAadvocate VBAadvocate is offline Content Control Bug in Headers and Footers caused by Ribbon XML Callback Windows 10 Content Control Bug in Headers and Footers caused by Ribbon XML Callback Office 2019
Novice
Content Control Bug in Headers and Footers caused by Ribbon XML Callback
 
Join Date: Feb 2022
Posts: 12
VBAadvocate is on a distinguished road
Default 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.
Attached Files
File Type: docm HeaderContentControlBug.docm (48.6 KB, 7 views)
Reply With Quote
  #2  
Old 07-22-2022, 11:22 AM
Charles Kenyon Charles Kenyon is online now Content Control Bug in Headers and Footers caused by Ribbon XML Callback Windows 11 Content Control Bug in Headers and Footers caused by Ribbon XML Callback Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,125
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

I take it you are posting this as a solution to the problem, not looking for help. Is this correct? If so, thank you.
Reply With Quote
  #3  
Old 07-22-2022, 11:28 AM
VBAadvocate VBAadvocate is offline Content Control Bug in Headers and Footers caused by Ribbon XML Callback Windows 10 Content Control Bug in Headers and Footers caused by Ribbon XML Callback Office 2019
Novice
Content Control Bug in Headers and Footers caused by Ribbon XML Callback
 
Join Date: Feb 2022
Posts: 12
VBAadvocate is on a distinguished road
Default Not a Question

Yes. I wanted to let others see this and see what their thoughts might be.
Reply With Quote
Reply

Tags
bug, contentcontrol, ribbon callback



Similar Threads
Thread Thread Starter Forum Replies Last Post
Content Control Bug in Headers and Footers caused by Ribbon XML Callback Content Control Dropdowns - How to duplicate the content control and allow a second choice ashleyf Word VBA 2 03-19-2020 09:11 AM
Content Control Bug in Headers and Footers caused by Ribbon XML Callback Control A does not select some footers and some headers Photon Word 5 04-20-2019 04:22 AM
Content Control Bug in Headers and Footers caused by Ribbon XML Callback too many clicks with ribbon - ribbon content disappears Rewster Word 2 05-12-2017 08:19 AM
Content Control Bug in Headers and Footers caused by Ribbon XML Callback Odd and Even Headers/Footers sarineochaos Word 1 02-04-2014 06:15 PM
Content Control Bug in Headers and Footers caused by Ribbon XML Callback Deleting a table from a content control -- preserving the content control BrainSlugs83 Word Tables 8 11-14-2013 03:06 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:18 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft