PoggiPJ
Active Member
- Joined
- Mar 25, 2008
- Messages
- 330
I would like my 2003 VBA application to support 2010 users as well so I can avoid maintaining multiple versions. I modify the 2003 menus with code like the following excerpt...
Since I can test Application.OperatingSystem, could I use that to take a different branch and create a specialized Ribbon tab with identical menu options for my Excel 2010 users, all within the same application.
Code:
'Reset any prior menu bar changes
MenuBars(xlWorksheet).Reset
'------------------------------------------------------------------------------------
'Add the top-level DEALMAKER TOOLS menu to the Worksheet CommandBar
'------------------------------------------------------------------------------------
Set MenuObject = Application.CommandBars(1). _
Controls.Add(Type:=msoControlPopup, _
Before:=10, _
temporary:=True)
MenuObject.Caption = "ELA Tools"
'Add menu BUTTON control to OPPORTUNITY CONTROL PANEL
Set MenuItem = MenuObject.Controls.Add(Type:=msoControlButton)
MenuItem.Caption = "Display Opportunity Control Panel"
MenuItem.OnAction = "DisplayOpportunityForm"
MenuItem.FaceId = 563
Since I can test Application.OperatingSystem, could I use that to take a different branch and create a specialized Ribbon tab with identical menu options for my Excel 2010 users, all within the same application.