Share via

Problem with InvalidateControl for the ribbon

Anonymous
2010-07-12T18:55:13+00:00

I am having a problem with setting up a button on a custom ribbon to invalidate certain controls.  I get an error about the macro being disabled or not available, but it's there and the project is located in a Trusted Templates area, so no macros are disabled.

The code isn't complicated:


Public grxRibbonUI As IRibbonUI

Public Sub rxIRibbonUI\_onLoad(ribbon As IRibbonUI)  

    Set grxIRibbonUI = ribbon  

End Sub

Sub Click\_Clean(control As IRibbonControl)  

        grxIRibbonUI.InvalidateControl "Elec\_Standard"  

        grxIRibbonUI.InvalidateControl "borrder\_title\_show"  

        grxIRibbonUI.InvalidateControl "Adjust\_Bates"  

End Sub

Microsoft 365 and Office | Install, redeem, activate | For home | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2010-07-12T19:43:37+00:00

    Is this control ID accurate or is it a typo error:  "borrder_title_show"


    Greg Maxey Please visit my website at: http://gregmaxey.mvps.org/word\_tips.htm

    Was this answer helpful?

    0 comments No comments