Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
JimB
 
Posts: n/a
Default adding macro to right mouse click menu

I know how to add macros to toolbars and menus, but I would like to add a
macro to the right mouse click menu in Excel. Can anyone tell me how to
accomplish this? Thanks and regards

  #2   Report Post  
Chip Pearson
 
Posts: n/a
Default adding macro to right mouse click menu

This can be done only with code.

With
Application.CommandBars("Cell").Controls.Add(tempo rary:=True)
.Caption = "Click Me"
.OnAction = "'" & ThisWorkbook.Name & "'!MyMacroName"
End With


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"JimB" wrote in message
...
I know how to add macros to toolbars and menus, but I would like
to add a
macro to the right mouse click menu in Excel. Can anyone tell
me how to
accomplish this? Thanks and regards



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
I want open file for click double mouse I want open file for click double mouse New Users to Excel 1 July 17th 05 12:49 PM
adding apostrophe macro? GolfGal Excel Discussion (Misc queries) 2 April 24th 05 04:39 PM
adding an option to the right click menu kontiki Excel Discussion (Misc queries) 1 December 16th 04 07:06 PM
adding an option in the right click menu kontiki Excel Discussion (Misc queries) 1 December 15th 04 05:42 PM
When I drag the mouse arrow over menu buttons, no description app. Bill Tasker Excel Discussion (Misc queries) 1 December 14th 04 10:20 AM


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