CoreyDickinson
New Member
- Joined
- Jul 10, 2002
- Messages
- 27
Just upgraded from Excel 2003 to 2010 and hate the new ribbon menu format. Can anyone recommend a good FREE add-in that will allow me to use the classic menus from Excel 2003?
The code below creates old style menus and command bars in Add-In tab of Ribbon.
Once upon a time it was made just for fun
Rich (BB code):' ZVI:2010-07-27 Creating of old style menus & CommandBars in Add-Ins tab of Excel 2007 Ribbon [
The code can be put in Add-In
' All code should be in Module1:
Option Explicit
' Creating of old style menus & CommandBars in Add-Ins tab of Excel 2007 Ribbon
Private Sub CreateOldStyleMenus()
If Workbooks.Count = 0 Then Workbooks.Add
If Val(Application.Version) < 12 Then Exit Sub
OldStyleDelete "Menus 2003", "Standard 2003", "Format 2003"
NewCommandBar "Menus 2003", Array(30002.1, 30003.1, 30004.1, 30005.1, 30006.1, 30007.1, 30011.1, 30009.1, 30022.1, 30177.1, 30010.1)
NewCommandBar "Standard 2003", Array(2520.01, 23.01, 3.01, 9004.01, 3738.01, 2521.01, 109.01, 2.01, 7343.01, 21.01, 19.01, 108.01, 128.06, 129.06, 9071.01, 1576.01, 226.13, 210.01, 211.01, 436.01, 1733.04, 30253.1, 984.01)
NewCommandBar "Format 2003", Array(1728.04, 1731.04, 113.01, 114.01, 115.01, 120.01, 122.01, 121.01, 402.01, 1643.01, 396.01, 397.01, 398.01, 399.01, 3162.01, 3161.01)
End Sub
' Delete old style menus & CommandBars
Private Sub OldStyleDelete(ParamArray cbNames())
Dim x: On Error Resume Next
For Each x In cbNames
CommandBars(x).Delete
Next
End Sub
' Create old style menus & CommandBars
Private Sub NewCommandBar(cbName, cbIDs)
Dim tp&, x: On Error Resume Next
With CommandBars.Add(cbName, , , True).Controls
.Parent.Visible = True
For Each x In cbIDs
tp = (x - Fix(x)) * 100
.Add Type:=tp, ID:=x
Next
End With
End Sub
' Code automaticalu runs at loading
Private Sub Auto_Open()
Application.OnTime Now, "CreateOldStyleMenus"
End Sub
' Code automaticalu runs at closing
Private Sub Auto_Close()
OldStyleDelete "Menus 2003", "Standard 2003", "Format 2003"
End Sub