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: 14
Default Executinh Addin Sub Menu Command

Hi,

I'm trying to use VBA to execute a sub menu command which was created by an
addin i've installed.

I know I can execute commands in the main command bar in Excel using command
line like this:

CommandBars("WorkSheet Menu Bar").Controls("Tools").Execute

What I wish to do is to execute a command which is in a sub menu under the
"Tools" menu. The desired button is placed he
"WorkSheet Menu Bar" - "Tools" - "MyAddinCustomMenu" -
"MyAddinCustomSubMenu" - "MyAddinSpecificButton"

By now I've solved that by using Tools - Customize to move that specific
button from the addin sub menu to the Worksheet Menu Bar so that I could
execute it using:
CommandBars("WorkSheet Menu Bar").Controls("MyAddinSpecificButton").Execute

The problem is that it requires each user to do that customization for the
code to work. I addition it doesn't look proffessional.

How can I execute that button using a code in VBA, without moving it to the
Worksheet menu bar?

Regards,
Amir.


 
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
addin and main menu disappears Przemek Excel Programming 2 August 4th 05 09:14 AM
Addin Menu Question ExcelMonkey[_190_] Excel Programming 1 February 7th 05 12:54 PM
Dull addin menu item Rob Excel Programming 7 December 31st 04 07:23 PM
unknown menu appear when installing an AddIn Carl Excel Programming 0 December 23rd 03 09:19 AM
Excel Addin with drop-down menu Aparna Rege Excel Programming 1 July 14th 03 11:00 PM


All times are GMT +1. The time now is 08:53 AM.

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"