You are here:   Home > Access - Ribbons > Update Ribbons Dynamically

Update Ribbons Dynamically

If you have setup a multi-lingual application you may want to change the Ribbon Labels dynamically. To do so the ribbon needs to be cached when loading. This can be done using callback onLoad of the <customUI> element.

Needed Ribbon XML:

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
  onLoad="CallbackOnLoad">
</customUI>

To be copied to a standard module:

Option Compare Database
Option Explicit
  
Public gobjRibbon As IRibbonUI
  
Sub CallbackOnLoad(ribbon As IRibbonUI)
    ' Cache a copy of RibbonUI.
    Set gobjRibbon = ribbon
End Sub

Now you have the possibility to adjust single ribbon controls using gobjRibbon.InvalidateControl "ControlID"
or the entire ribbon using gobjRibbon.Invalidate.

 

 

 

Last Updates:

19.01.2013
Update Downloads for "Trusted Locations" - Versions for Office 2013 ...


29.08.2012
Revised versions for IDBE RibbonCreator2010 (Version 1.1014a) ...

07.08.2012
Update Group Attributes and Callbacks. ...

02.08.2012
New Access FAQ added. New Download added. ...

 

Last update:
April 07, 2013, 22:24