title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
IRibbonUI.InvalidateControlMso method (Office) |
vbaof11.chm320003 |
|
|
bfcca0e9-8696-6a0e-ff27-6dfde41dff93 |
01/16/2019 |
medium |
Used to invalidate a built-in control.
expression.InvalidateControlMso (ControlID)
expression An expression that returns an IRibbonUI object.
Name | Required/Optional | Data type |
---|---|---|
ControlID | Required | String |
Nothing
Invalidating a control repaints the screen and causes any callback procedures associated with that control to execute.
<customUI … OnLoad="MyAddInInitialize" …>
Sub MyAddInInitialize(Ribbon As IRibbonUI)
Set MyRibbon = Ribbon
End Sub
Sub myFunction()
MyRibbon.InvalidateControlMso("TabInsert") ' Invalidates the Insert control
End Sub
[!includeSupport and feedback]