Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42307

Working with menu bars

$
0
0
I have this code in Excel 2010 that adds a custom menu to Excel's menu bar

Code:

  Dim cbMainMenuBar As CommandBar
    Dim intHelpMenu As Integer
    Dim cbcCutomMenu As CommandBarControl


    Set cbMainMenuBar = Application.CommandBars("Worksheet Menu Bar")   
    intHelpMenu = cbMainMenuBar.Controls("Help").Index
    Set cbcCutomMenu = cbMainMenuBar.Controls.Add(Type:=msoControlPopup, Before:=intHelpMenu)

which creates this

Name:  Windows_XP_-_Parallels_Desktop-2.jpg
Views: 5
Size:  31.8 KB

Is there any way to rename that or some other way to add my own custom menu?
Attached Images
 

Viewing all articles
Browse latest Browse all 42307

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>