Skip to content

Latest commit

 

History

History
65 lines (39 loc) · 1.2 KB

Office.IRibbonUI.InvalidateControlMso.md

File metadata and controls

65 lines (39 loc) · 1.2 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
IRibbonUI.InvalidateControlMso method (Office)
vbaof11.chm320003
vbaof11.chm320003
Office.IRibbonUI.InvalidateControlMso
bfcca0e9-8696-6a0e-ff27-6dfde41dff93
01/16/2019
medium

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

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

See also

[!includeSupport and feedback]