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

I created a schedule template for my supervisor at work. Every thing works ok
except the menu does not load.

Menu should show as soon as workbook is opened.I have shortcut keys assign
to load forms,but would be nice to see the menu.

Of course it works fine on all of my machines which are running xp ( so is
super)
but I'm not on network where he is ???

any help on this would be great

thanks in advance
gr8day
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default custom menu not showing in template file


Put your code of making the menu in ThisWorkbook in folder 'Microsoft
Excel Objects'

Private Sub Workbook_Open()
***put code here***
End Sub


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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default custom menu not showing in template file

I actually have a module for the menu that I call from ThisWorkbook_Open( )
it works fine on my machine but not on supervisors.


"Zurn" wrote:


Put your code of making the menu in ThisWorkbook in folder 'Microsoft
Excel Objects'

Private Sub Workbook_Open()
***put code here***
End Sub


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


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default custom menu not showing in template file


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

  #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




Reply
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 02:03 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"