Compartir a través de


IRibbonUI.InvalidateControlMso Method (Office)

Used to invalidate a built-in control.

Version Information

Version Added: Office 2010

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

Concepts

IRibbonUI Object

IRibbonUI Object Members