dropDown on the ribbon:
<dropDown id="dd01"
onAction="dd01OnAction"/>
In VBA I need
Sub dd01OnAction(control As IRibbonControl, ID As String, index As Integer)
If dd01.Value = "Sky" Then MsgBox "323"
End Sub
How can I get the value of dropDown ?
I don’t think you can get the value directly.
I usually load the dropDowns from a collection object and make sure that the ID in the collection matches the index in the dropDown. That way I can get all relevant values from the collection based on the index or ID parameter in the callback. Could you use something similar as a workaraound?
Yes, however, by using
ribbonobject.InvalidateControl("ID")you can invalidate just the specific dropDown control, not the whole ribbon.Very brief example: