A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Setting up and Configuration
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

ADD A COMMAND TO MOUSE RIGHT CLICK



 
 
Thread Tools Display Modes
  #1  
Old August 20th, 2009, 02:33 AM posted to microsoft.public.excel.setup
frankoklahoma
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  
Old August 23rd, 2009, 09:45 PM posted to microsoft.public.excel.setup
Chip Pearson
external usenet poster
 
Posts: 1,343
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?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:18 AM.


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