Control | Callback Name | Signatures |
---|---|---|
(several controls) | getDescription | VBA: Sub GetDescription(control As IRibbonControl, ByRef description) |
(several controls) | getEnabled | VBA: Sub GetEnabled(control As IRibbonControl, ByRef enabled) |
(several controls) | getImage | VBA: Sub GetImage(control As IRibbonControl, ByRef image) |
(several controls) | getImageMso | VBA: Sub GetImageMso(control As IRibbonControl, ByRef imageMso) |
(several controls) | getLabel | VBA: Sub GetLabel(control As IRibbonControl, ByRef label) |
(several controls) | getKeytip | VBA: Sub GetKeytip (control As IRibbonControl, ByRef label) |
(several controls) | getSize | VBA: sub GetSize(control As IRibbonControl, ByRef size) |
(several controls) | getScreentip | VBA: Sub GetScreentip(control As IRibbonControl, ByRef screentip) |
(several controls) | getSupertip | VBA: Sub GetSupertip(control As IRibbonControl, ByRef screentip) |
(several controls) | getVisible | VBA: Sub GetVisible(control As IRibbonControl, ByRef visible) |
button | getShowImage | VBA: Sub GetShowImage (control As IRibbonControl, ByRef showImage) |
button | getShowLabel | VBA: Sub GetShowLabel (control As IRibbonControl, ByRef showLabel) |
button | onAction – repurposed | VBA: Sub OnAction(control As IRibbonControl, byRef CancelDefault) |
button | onAction | VBA: Sub OnAction(control As IRibbonControl) |
checkBox | getPressed | VBA: Sub GetPressed(control As IRibbonControl, ByRef returnValue) |
checkBox | onAction | VBA: Sub OnAction(control As IRibbonControl, pressed As Boolean) |
comboBox | getItemCount | VBA: Sub GetItemCount(control As IRibbonControl, ByRef count) |
comboBox | getItemID | VBA: Sub GetItemID(control As IRibbonControl, index As Integer, ByRef id) |
comboBox | getItemImage | VBA: Sub GetItemImage(control As IRibbonControl, index As Integer, ByRef image) |
comboBox | getItemLabel | VBA: Sub GetItemLabel(control As IRibbonControl, index As Integer, ByRef label) |
comboBox | getItemScreenTip | VBA: Sub GetItemScreenTip(control As IRibbonControl, index As Integer, ByRef screentip) |
comboBox | getItemSuperTip | VBA: Sub GetItemSuperTip (control As IRibbonControl, index As Integer, ByRef supertip) |
comboBox | getText | VBA: Sub GetText(control As IRibbonControl, ByRef text) |
comboBox | onChange | VBA: Sub OnChange(control As IRibbonControl, text As String) |
customUI | loadImage | VBA: Sub LoadImage(imageId As string, ByRef image) |
customUI | onLoad | VBA: Sub OnLoad(ribbon As IRibbonUI) |
dropDown | getItemCount | VBA: Sub GetItemCount(control As IRibbonControl, ByRef count) |
dropDown | getItemID | VBA: Sub GetItemID(control As IRibbonControl, index As Integer, ByRef id) |
dropDown | getItemImage | VBA: Sub GetItemImage(control As IRibbonControl, index As Integer, ByRef image) |
dropDown | getItemLabel | VBA: Sub GetItemLabel(control As IRibbonControl, index As Integer, ByRef label) |
dropDown | getItemScreenTip | VBA: Sub GetItemScreenTip(control As IRibbonControl, index As Integer, ByRef screenTip) |
dropDown | getItemSuperTip | VBA: Sub GetItemSuperTip (control As IRibbonControl, index As Integer, ByRef superTip) |
dropDown | getSelectedItemID | VBA: Sub GetSelectedItemID(control As IRibbonControl, ByRef index) |
dropDown | getSelectedItemIndex | VBA: Sub GetSelectedItemIndex(control As IRibbonControl, ByRef index) |
dropDown | onAction | VBA: Sub OnAction(control As IRibbonControl, selectedId As String, selectedIndex As Integer) |
dynamicMenu | getContent | VBA: Sub GetContent(control As IRibbonControl, ByRef content) |
editBox | getText | VBA: Sub GetText(control As IRibbonControl, ByRef text) |
editBox | onChange | VBA: Sub OnChange(control As IRibbonControl, text As String) |
gallery | getItemCount | VBA: Sub GetItemCount(control As IRibbonControl, ByRef count) |
gallery | getItemHeight | VBA: Sub getItemHeight(control As IRibbonControl, ByRef height) |
gallery | getItemID | VBA: Sub GetItemID(control As IRibbonControl, index As Integer, ByRef id) |
gallery | getItemImage | VBA: Sub GetItemImage(control As IRibbonControl, index As Integer, ByRef image) |
gallery | getItemLabel | VBA: Sub GetItemLabel(control As IRibbonControl, index As Integer, ByRef label) |
gallery | getItemScreenTip | VBA: Sub GetItemScreenTip(control As IRibbonControl, index as Integer, ByRef screen) |
gallery | getItemSuperTip | VBA: Sub GetItemSuperTip (control As IRibbonControl, index as Integer, ByRef screen) |
gallery | getItemWidth | VBA: Sub getItemWidth(control As IRibbonControl, ByRef width) |
gallery | getSelectedItemID | VBA: Sub GetSelectedItemID(control As IRibbonControl, ByRef index) |
gallery | getSelectedItemIndex | VBA: Sub GetSelectedItemIndex(control As IRibbonControl, ByRef index) |
gallery | onAction | VBA: Sub OnAction(control As IRibbonControl, selectedId As String, selectedIndex As Integer) |
menuSeparator | getTitle | VBA: Sub GetTitle (control As IRibbonControl, ByRef title) |
toggleButton | getPressed | VBA: Sub GetPressed(control As IRibbonControl, ByRef returnValue) |
toggleButton | onAction - repurposed | VBA: Sub OnAction(control As IRibbonControl, pressed As Boolean, byRef cancelDefault) |
toggleButton | onAction | VBA: Sub OnAction(control As IRibbonControl, pressed As Boolean) |
Controls and Their Associated Callbacks
The following table lists the controls that are available in Microsoft Office 2007 and the callbacks that are associated with the controls. The VBA code is also given so you can write macros in VB editor.