Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All
I have Excel 2003 menu, In Excel 2007 can not able to user. Any suggestion ? Const XMENU = "PERSONAL" Sub Auto_open() '~~ VBA Call PerActiveMenu End Sub Sub Auto_close() Call PerDeleteMenu End Sub Sub PerDeleteMenu() On Error Resume Next CommandBars(1).Controls(XMENU).Delete End Sub Sub PerActiveMenu() '~~ Sub menu Dim HelpMenu As CommandBarControl Dim NewMenu As CommandBarPopup Dim MenuItem As CommandBarControl Dim SubMenuItem As CommandBarControl '~~ delete the menu if it already exists Call PerDeleteMenu '~~ find the help Menu Set HelpMenu = CommandBars(1).FindControl(ID:=30010) If HelpMenu Is Nothing Then Set NewMenu = CommandBars(1).Controls _ .Add(Type:=msoControlPopup, temporary:=True) Else Set NewMenu = CommandBars(1).Controls _ .Add(Type:=msoControlPopup, befo=HelpMenu.Index, _ temporary:=True) End If '~~ Add a caption for the menu NewMenu.Caption = XMENU '~~ First Menu Item Set MenuItem = NewMenu.Controls.Add _ (Type:=msoControlButton) With MenuItem .Caption = "Page Format" .FaceId = 0 ' .OnAction = "Personal_Page_Format" End With Set MenuItem = NewMenu.Controls.Add _ (Type:=msoControlButton) With MenuItem .Caption = "Planning Project Date" .FaceId = 0 ' .OnAction = "perPlanningProjectDate" -<---------------------- get error here End With |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2007 versus Excel 2003 & Excel 97-2003 fully compatible | Excel Worksheet Functions | |||
Change Excel Template in Excel 2003 Using Vista | Excel Discussion (Misc queries) | |||
We use Office 2003, but there's an Excel 2007 template I want | Excel Discussion (Misc queries) | |||
Excel 2007 "Personal Budget" template to 2003? | Excel Discussion (Misc queries) | |||
How do I use Template wizard add in for 2002 Excel in 2003 excel?. | Excel Worksheet Functions |