LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Using Excel 2007 with Excel 2003 template

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007 versus Excel 2003 & Excel 97-2003 fully compatible Bumpersnesty Excel Worksheet Functions 0 April 26th 10 09:44 PM
Change Excel Template in Excel 2003 Using Vista spartan76_98 Excel Discussion (Misc queries) 2 September 8th 08 09:05 PM
We use Office 2003, but there's an Excel 2007 template I want evv_itpro Excel Discussion (Misc queries) 2 November 2nd 07 06:49 PM
Excel 2007 "Personal Budget" template to 2003? mellow13 Excel Discussion (Misc queries) 1 April 22nd 07 01:21 PM
How do I use Template wizard add in for 2002 Excel in 2003 excel?. TCIrish Excel Worksheet Functions 0 November 23rd 04 04:43 PM


All times are GMT +1. The time now is 03:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"