简体   繁体   中英

Implementing IRibbonExtensibility_GetCustomUI from VBA

I've been trying to manipulate Outlook Ribbon, namely QAT icons, from VBA editor. Found references to IRibbonExtensibility, which is actually recognized in class modules:

Implements IRibbonExtensibility

Public Function IRibbonExtensibility_GetCustomUI(ByVal RibbonID As String) As String
    'Must return XML
End Function

However, I can't get this interface instantiated:

Adding this code in ThisOutlookSession cause Outlook startup error.

Instantiating class modules with this code render IRibbonExtensability member as Nothing.

Is this only available for COM Addins? Any other direction?

Yes, in case of Outlook the Fluent UI customizations are available through COM add-ins only.

Read more about the Fluent UI (aka Ribbon UI) in the following series of articles:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM