Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default adding shortcut menu items


I am trying to add some existing Excel commands to my shortcut bars (e
Sort, Find & Replace, etc.), but I don't know what the OnAction need
to be for each of them. Is there a way to get a list of all of th
source events from Excel? Obviously I am not a macro or VBA expert

--
singincp
-----------------------------------------------------------------------
singincpa's Profile: http://www.excelforum.com/member.php...fo&userid=1587
View this thread: http://www.excelforum.com/showthread.php?threadid=27361

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default adding shortcut menu items

You can add it like this and you don't need the onaction code

..Controls.Add Type:=msoControlButton, ID:=4

See this page for the ID numbers (see also the linls at the bottom of the page)
http://www.rondebruin.com/menuid.htm

--
Regards Ron de Bruin
http://www.rondebruin.nl


"singincpa" wrote in message ...

I am trying to add some existing Excel commands to my shortcut bars (eg
Sort, Find & Replace, etc.), but I don't know what the OnAction needs
to be for each of them. Is there a way to get a list of all of the
source events from Excel? Obviously I am not a macro or VBA expert.


--
singincpa
------------------------------------------------------------------------
singincpa's Profile: http://www.excelforum.com/member.php...o&userid=15874
View this thread: http://www.excelforum.com/showthread...hreadid=273612



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default adding shortcut menu items

there are no source events. built in buttons are associated with default
behavior.

If you add the built in buttons to th shortcut bar, they will perform in the
normal manner without setting an onaction property.

--
Regards,
Tom Ogilvy

"singincpa" wrote in message
...

I am trying to add some existing Excel commands to my shortcut bars (eg
Sort, Find & Replace, etc.), but I don't know what the OnAction needs
to be for each of them. Is there a way to get a list of all of the
source events from Excel? Obviously I am not a macro or VBA expert.


--
singincpa
------------------------------------------------------------------------
singincpa's Profile:

http://www.excelforum.com/member.php...o&userid=15874
View this thread: http://www.excelforum.com/showthread...hreadid=273612



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
Adding an Outlook appointment shortcut to the Excel menu Creating a Word shortcut in Excel[_2_] Excel Discussion (Misc queries) 1 December 7th 07 06:33 PM
Popup Menu / Shortcut Menu Dale Fye Excel Discussion (Misc queries) 2 October 12th 07 12:57 AM
Menu items added with menu item editor in older versions Michael Hoffmann Excel Discussion (Misc queries) 2 January 7th 05 01:40 PM
Adding Items to a ListBox-Unique Items Only jpendegraft[_14_] Excel Programming 2 May 2nd 04 02:27 AM
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 06:14 PM.

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

About Us

"It's about Microsoft Excel"