Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.setup
external usenet poster
 
Posts: 1
Default ADD A COMMAND TO MOUSE RIGHT CLICK

How can I add a command to the "right click" on my mouse in Excel? I want to
have the "SUM" command on my mouse. Can I do this?
  #2   Report Post  
Posted to microsoft.public.excel.setup
external usenet poster
 
Posts: 7,247
Default ADD A COMMAND TO MOUSE RIGHT CLICK


You can modify the right-click menu only with VBA. If you want to add
the existing AutoSum button to the right-click menu, run the following
code:

Sub AddSumToCellMenu()
On Error Resume Next
Application.CommandBars.FindControl(Tag:="MySum"). Delete
On Error GoTo 0
Application.CommandBars("Cell").Controls.Add(ID:=2 26).Tag =
"MySum"
End Sub


Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)


On Wed, 19 Aug 2009 18:33:01 -0700, frankoklahoma
wrote:

How can I add a command to the "right click" on my mouse in Excel? I want to
have the "SUM" command on my mouse. Can I do this?

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
Right Mouse Click StephenD Excel Discussion (Misc queries) 4 May 27th 09 04:24 PM
right mouse click not working VSLAU1 Excel Discussion (Misc queries) 1 March 18th 08 03:55 AM
right mouse click in excel Carol Excel Discussion (Misc queries) 1 January 4th 06 11:21 PM
Each Click of the Mouse D.Parker Excel Discussion (Misc queries) 13 April 28th 05 11:24 PM
Add cell value with mouse click cbrasted Excel Discussion (Misc queries) 4 April 27th 05 01:36 AM


All times are GMT +1. The time now is 10:54 AM.

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"