参考:http://www.foxtable.com/webhelp/scr/1134.htm
AfterOpenProject事件
With RibbonTabs("功能区1").Groups("功能组1").Items("组合框1")
.Items.Clear '清除原有项目
For Each s As String In DataTables("表A").GetValues("项目名称") '遍历当前表中的列
'定义一个标准按钮,按钮的名称等于列名称.
Dim b As New RibbonMenu.Button(s)
b.Text = s '按钮的标题也等于列名称
.Items.Add(b)
Next
End With