LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default custom menu not showing in template file

Template file
I built the file in a regular file first to make sure everything worked, and
it did.
Then once that was done I save as a Template file.

This is my code for Module named ShiftMenu

Sub NewMenu()
Dim PressMenu As CommandBarPopup
'
Call DeleteMenu
Set PressMenu = CommandBars(1).Controls.Add(Type:=msoControlPopup,
Temporary:=True)
PressMenu.Caption = "Press"

Set MenuItem = PressMenu.Controls.Add(Type:=msoControlButton)
MenuItem.Caption = "Shift Schedule"
MenuItem.OnAction = "Month"
Set MenuItem1 = PressMenu.Controls.Add(Type:=msoControlButton)
MenuItem1.Caption = "Edit Schedule"
MenuItem1.OnAction = "EditSchedule"


End Sub

code to call

Private Sub Workbook_Open()
Call ShiftMenu.NewMenu

End Sub


"Zurn" wrote:


Is this code in the ThisWorkbook in your personal folder or in the
template file?

Else provide some code in line please...


--
Zurn
------------------------------------------------------------------------
Zurn's Profile: http://www.excelforum.com/member.php...o&userid=14645
View this thread: http://www.excelforum.com/showthread...hreadid=533630




 
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
Showing Custom file properties in Header Flosp Excel Discussion (Misc queries) 1 August 14th 07 03:40 PM
Adding Sub Menu Item to Current Custom Menu Renato Excel Programming 2 December 19th 05 12:48 AM
Deleting custom Commands from File Menu are nor saved next time w. EXCEL CUstomization Excel Worksheet Functions 3 December 7th 04 01:46 AM
Macros in a template run from Custom Toolbar attaching to wrong file. Linda Excel Programming 4 May 17th 04 11:46 PM
Adding and Removing Custom Menu Items for one file... Jon Kane Excel Programming 2 September 17th 03 07:23 PM


All times are GMT +1. The time now is 11:37 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"