Skip to content

Instantly share code, notes, and snippets.

@rediffusion
Last active July 30, 2019 10:14
Show Gist options
  • Save rediffusion/e78493c18f6ac1b3d4fbd4041358fb7c to your computer and use it in GitHub Desktop.
Save rediffusion/e78493c18f6ac1b3d4fbd4041358fb7c to your computer and use it in GitHub Desktop.
Sub MyComboBoxCallbackOnChange(control As IRibbonControl, strText As String)
Select Case control.ID
Case "myComboBox"
MsgBox "You have " & strText & " selected", _
vbInformation, _
"ComboBox Sample"
End Select
End Sub
<comboBox
id="myComboBox"
label="My ComboBox:"
imageMso="PictureEffectsGlowGallery"
onChange="MyComboBoxCallbackOnChange"
sizeString= "WWWWWWWWWWWWW">
</comboBox>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment