none
vb2013 怎么创建VBE菜单 RRS feed

  • 问题

  • vb2013  在excel插件中,怎么创建VBE菜单?

    在VBA中可以这样

    CommandBars.Add(name:="n1", Position:=msoBarTop)

    但在VB中,发现没msoBarTop属性

    求指点

    2015年5月6日 15:14

答案

  • 你好,

    用这个方法,vb里有msoBarTop的。

    Dim cmdBars As Office.CommandBars = _
                Me.Application.ActiveExplorer().CommandBars
    Dim newToolBar As Office.CommandBar = cmdBars.Add("NewToolBar", _
                Office.MsoBarPosition.msoBarTop, False, True)


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2015年5月7日 8:19
    版主