Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Take over menus

Hi,
In Word it is possible to take over the menus by adding a subrutine
FileNew, FileOpen or similar.
However, I cannot find anything like this in Excel.

Does anyone have any suggestions on how to accomplice this?

I know that I can manually use "Customize..." and assign a macro to a
menu, but can this be done automatically at startup?

I need to assign new macros to both FileOpen and FileSaveAs to 100+
users, so I don't want to run around to each machine and do the
customization manually ;-)

Best regards
Ole Sorensen
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Take over menus

No. You have to replace the existing commandbar button or assign it to your
macro.

--
Regards,
Tom Ogilvy

"O. Sorensen" wrote in message
om...
Hi,
In Word it is possible to take over the menus by adding a subrutine
FileNew, FileOpen or similar.
However, I cannot find anything like this in Excel.

Does anyone have any suggestions on how to accomplice this?

I know that I can manually use "Customize..." and assign a macro to a
menu, but can this be done automatically at startup?

I need to assign new macros to both FileOpen and FileSaveAs to 100+
users, so I don't want to run around to each machine and do the
customization manually ;-)

Best regards
Ole Sorensen



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 339
Default Take over menus


"O. Sorensen" wrote in message
om...
Hi,
In Word it is possible to take over the menus by adding a subrutine
FileNew, FileOpen or similar.
However, I cannot find anything like this in Excel.

Does anyone have any suggestions on how to accomplice this?

I know that I can manually use "Customize..." and assign a macro to a
menu, but can this be done automatically at startup?

I need to assign new macros to both FileOpen and FileSaveAs to 100+
users, so I don't want to run around to each machine and do the
customization manually ;-)

Best regards
Ole Sorensen


You can create your own menus. Why would you want to actually take over a
menu?

http://msdn.microsoft.com/library/de...VSTCommBar.asp

/Fredrik


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Take over menus

If the OP isn't working in Visual Basic .Net or C# .Net then

http://support.microsoft.com/default...02&Product=xlw
How to customize menus and menu bars in Excel

http://support.microsoft.com/default...b;en-us;166755
File Title: Customizing Menu Bars, Menus, and Menu Items in Microsoft(R)
Excel 97
File Name: WE1183.EXE
File Size: 58041 bytes
File Date: 06/20/97
Keywords: kbfile kbappnote
Description: This Application Note can help you learn techniques for writing
Visual Basic(R) for Applications code to customize menus in Microsoft Excel
97. This Application Note contains code examples that you can use with the
following elements: menu bars, menus, menu items, submenus, and shortcut
menus.


Here is an article about creating commandbars with code:
http://msdn.microsoft.com/library/techart/ofcmdbar.htm


--
Regards,
Tom Ogilvy



"Fredrik Wahlgren" wrote in message
...

"O. Sorensen" wrote in message
om...
Hi,
In Word it is possible to take over the menus by adding a subrutine
FileNew, FileOpen or similar.
However, I cannot find anything like this in Excel.

Does anyone have any suggestions on how to accomplice this?

I know that I can manually use "Customize..." and assign a macro to a
menu, but can this be done automatically at startup?

I need to assign new macros to both FileOpen and FileSaveAs to 100+
users, so I don't want to run around to each machine and do the
customization manually ;-)

Best regards
Ole Sorensen


You can create your own menus. Why would you want to actually take over a
menu?


http://msdn.microsoft.com/library/de...VSTCommBar.asp

/Fredrik




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Take over menus

Hi Tom and Fredrik,

Thanks, - I'll look into this.
I have writting some VB.NET classes that handles some extra features in the
saving-process (essentially like a document handling-system), which I want
to impose on all users in my company. Therefore, I need to re-program their
SaveAs to call my function before actually saving.

BR Ole Sørensen,

"Tom Ogilvy" skrev i en meddelelse
...
If the OP isn't working in Visual Basic .Net or C# .Net then

http://support.microsoft.com/default...02&Product=xlw
How to customize menus and menu bars in Excel

http://support.microsoft.com/default...b;en-us;166755
File Title: Customizing Menu Bars, Menus, and Menu Items in Microsoft(R)
Excel 97
File Name: WE1183.EXE
File Size: 58041 bytes
File Date: 06/20/97
Keywords: kbfile kbappnote
Description: This Application Note can help you learn techniques for
writing
Visual Basic(R) for Applications code to customize menus in Microsoft
Excel
97. This Application Note contains code examples that you can use with the
following elements: menu bars, menus, menu items, submenus, and shortcut
menus.


Here is an article about creating commandbars with code:
http://msdn.microsoft.com/library/techart/ofcmdbar.htm


--
Regards,
Tom Ogilvy



"Fredrik Wahlgren" wrote in
message
...

"O. Sorensen" wrote in message
om...
Hi,
In Word it is possible to take over the menus by adding a subrutine
FileNew, FileOpen or similar.
However, I cannot find anything like this in Excel.

Does anyone have any suggestions on how to accomplice this?

I know that I can manually use "Customize..." and assign a macro to a
menu, but can this be done automatically at startup?

I need to assign new macros to both FileOpen and FileSaveAs to 100+
users, so I don't want to run around to each machine and do the
customization manually ;-)

Best regards
Ole Sorensen


You can create your own menus. Why would you want to actually take over a
menu?


http://msdn.microsoft.com/library/de...VSTCommBar.asp

/Fredrik






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
Sub-menus of main menus for Excel 2007 Eleanor Peppard New Users to Excel 1 March 16th 10 04:12 PM
Creating Drop-down menus with subset drop-down menus Benjamin Excel Worksheet Functions 4 June 8th 09 11:27 PM
difference between word 2003 menus and word 2007 menus-Explain pl kali Excel Discussion (Misc queries) 1 August 29th 07 07:56 AM
New Menus - attaching but menus are reset Greegan Excel Worksheet Functions 0 November 5th 05 03:19 PM
Overriding Actions of Excel DropDown Menus and Poup Menus Von Shean Excel Programming 2 February 3rd 04 06:43 AM


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