RibbonMain.GetOptionIndex
From Jeremie Leroy - XOJO Controls Wiki
Method
RibbonMain.GetOptionIndex ( Name As String ) As String
Returns the index of the passed Name. Name can contain a dot to get the object from a certain Name. To get the index of a SubOption, pass Name.SubOptionName