IRibbonUI.InvalidateControlMso method (Office)

Used to invalidate a built-in control.

Syntax

expression.InvalidateControlMso (ControlID)

expression An expression that returns an IRibbonUI object.

Parameters

Name Required/Optional Data type
ControlID Required String

Return value

Nothing

Remarks

Invalidating a control repaints the screen and causes any callback procedures associated with that control to execute.

Example

<customUI … OnLoad="MyAddInInitialize" …>
Sub MyAddInInitialize(Ribbon As IRibbonUI) 
 Set MyRibbon = Ribbon 
End Sub 
 
Sub myFunction() 
 MyRibbon.InvalidateControlMso("TabInsert") ' Invalidates the Insert control 
End Sub

See also

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.