Originally Posted by
Paul_Hossler
1. getImage doesn't work for buttons
I don't know, maybe I don't understand. Finally, I don't know English.
XML code:
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Rbn_onLoad">
<ribbon >
<tabs >
<tab
id="Tab1"
label="Tab1">
<group
id="Group1"
label="Group1">
<button
id="Button1"
label="Button1"
size="large"
getImage="Button1_getImage"/>
</group >
</tab >
</tabs >
</ribbon >
</customUI >
VBA code:
Option Explicit
Public xRbn As IRibbonUI
Public Sub Button1_getImage(control As IRibbonControl, ByRef returnedVal)
'
' Code for getImage callback. Ribbon control button
'
Dim stPath As String
stPath = "E:\MyFolder\Icons\fingerprint.jpg"
Set returnedVal = LoadPicture(stPath)
End Sub
Public Sub Rbn_onLoad(ribbon As IRibbonUI)
'
' Code for onLoad callback. Ribbon control customUI
'
Set xRbn = ribbon
End Sub
Artik