IRibbonUI.InvalidateControlMso Method (Office)

Used to invalidate a built-in control.

Syntax

expression. InvalidateControlMso( _ControlID_ )

expression An expression that returns a IRibbonUI object.

Parameters

Name Required/Optional Data Type Description
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

IRibbonUI Object

IRibbonUI Object Members