#1   Report Post  
Posted to microsoft.public.excel.setup
external usenet poster
 
Posts: 10
Default Mouse

Is there a way in Excel to add options to the right click functions for the
mouse. For example, I would like to be able to use the fill down function by
right clicking instead of using CTRL D on the keyboard.
  #2   Report Post  
Posted to microsoft.public.excel.setup
external usenet poster
 
Posts: 22,906
Default Mouse

You would need VBA event code to add the filldown command to right-click.

How about just go to ToolsCustomizeCommandsEdit and drag the FillDown button
to a toolbar?

For the event code................

Sub fill()
Selection.FillDown
End Sub

Sub fill() goes into a general module.

The following two events go into the Thisworkbook module.

I suggest you open a new workbook, copy the macro and event code into that
workbook then Save As an Add-in which loads when Excel starts.

If you go that route, you don't really need the BeforeClose event.

Sub Workbook_Open()
With Application.CommandBars("Cell").Controls.Add(tempo rary:=True)
.BeginGroup = True
.Caption = "Fill Down"
.OnAction = "Fill"
End With
End Sub

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.CommandBars("Cell").Controls("Fill Down").Delete
End Sub


Gord Dibben MS Excel MVP


On Wed, 20 Jun 2007 07:33:01 -0700, JimC wrote:

Is there a way in Excel to add options to the right click functions for the
mouse. For example, I would like to be able to use the fill down function by
right clicking instead of using CTRL D on the keyboard.


  #3   Report Post  
Posted to microsoft.public.excel.setup
external usenet poster
 
Posts: 10
Default Mouse

I opted for the first choice because the rest was beyond my skill level.
That option keeps my hands off the keyboard and on the mouse which is what I
was after. Thanks.

"Gord Dibben" wrote:

You would need VBA event code to add the filldown command to right-click.

How about just go to ToolsCustomizeCommandsEdit and drag the FillDown button
to a toolbar?

For the event code................

Sub fill()
Selection.FillDown
End Sub

Sub fill() goes into a general module.

The following two events go into the Thisworkbook module.

I suggest you open a new workbook, copy the macro and event code into that
workbook then Save As an Add-in which loads when Excel starts.

If you go that route, you don't really need the BeforeClose event.

Sub Workbook_Open()
With Application.CommandBars("Cell").Controls.Add(tempo rary:=True)
.BeginGroup = True
.Caption = "Fill Down"
.OnAction = "Fill"
End With
End Sub

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.CommandBars("Cell").Controls("Fill Down").Delete
End Sub


Gord Dibben MS Excel MVP


On Wed, 20 Jun 2007 07:33:01 -0700, JimC wrote:

Is there a way in Excel to add options to the right click functions for the
mouse. For example, I would like to be able to use the fill down function by
right clicking instead of using CTRL D on the keyboard.



  #4   Report Post  
Posted to microsoft.public.excel.setup
external usenet poster
 
Posts: 22,906
Default Mouse

OK

Keep the code in mind though.

A right-click after selecting a range is more intuitive IMO

You can also place commands on the "Columns" and "Rows" right-click which is
handy.

Also can add commands to the Sheet tabs("Ply") right-click menu.


Gord Dibben MS Excel MVP

On Wed, 20 Jun 2007 14:20:05 -0700, JimC wrote:

I opted for the first choice because the rest was beyond my skill level.
That option keeps my hands off the keyboard and on the mouse which is what I
was after. Thanks.

"Gord Dibben" wrote:

You would need VBA event code to add the filldown command to right-click.

How about just go to ToolsCustomizeCommandsEdit and drag the FillDown button
to a toolbar?

For the event code................

Sub fill()
Selection.FillDown
End Sub

Sub fill() goes into a general module.

The following two events go into the Thisworkbook module.

I suggest you open a new workbook, copy the macro and event code into that
workbook then Save As an Add-in which loads when Excel starts.

If you go that route, you don't really need the BeforeClose event.

Sub Workbook_Open()
With Application.CommandBars("Cell").Controls.Add(tempo rary:=True)
.BeginGroup = True
.Caption = "Fill Down"
.OnAction = "Fill"
End With
End Sub

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.CommandBars("Cell").Controls("Fill Down").Delete
End Sub


Gord Dibben MS Excel MVP


On Wed, 20 Jun 2007 07:33:01 -0700, JimC wrote:

Is there a way in Excel to add options to the right click functions for the
mouse. For example, I would like to be able to use the fill down function by
right clicking instead of using CTRL D on the keyboard.




  #5   Report Post  
Posted to microsoft.public.excel.setup
external usenet poster
 
Posts: 903
Default Mouse

See if this page helps
Right Click Menus (Context Menus) in Excel
http://www.mvps.org/dmcritchie/excel/rightclick.htm

You really should be familiar with macros and the difference
between standard macros and event macros before getting
into this, more for the ability to correct something if it goes
wrong. Though the code is all shown and where it goes, this
would not be the page to start learning about macros.

I would start learning with User Defined Functions (UDF) which are installed
the same as standard macros, and for something that you
can probably get a lot of use out of, I'd suggest starting with
such UDF as GetFormula, GetFormulaD, GetFormat
http://www.mvps.org/dmcritchie/excel/formulas.htm

--
HTH,
David McRitchie, Microsoft MVP - Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Gord Dibben" <gorddibbATshawDOTca wrote in message ...
OK

Keep the code in mind though.

A right-click after selecting a range is more intuitive IMO

You can also place commands on the "Columns" and "Rows" right-click which is
handy.

Also can add commands to the Sheet tabs("Ply") right-click menu.


Gord Dibben MS Excel MVP

On Wed, 20 Jun 2007 14:20:05 -0700, JimC wrote:

I opted for the first choice because the rest was beyond my skill level.
That option keeps my hands off the keyboard and on the mouse which is what I
was after. Thanks.

"Gord Dibben" wrote:

You would need VBA event code to add the filldown command to right-click.

How about just go to ToolsCustomizeCommandsEdit and drag the FillDown button
to a toolbar?

For the event code................

Sub fill()
Selection.FillDown
End Sub

Sub fill() goes into a general module.

The following two events go into the Thisworkbook module.

I suggest you open a new workbook, copy the macro and event code into that
workbook then Save As an Add-in which loads when Excel starts.

If you go that route, you don't really need the BeforeClose event.

Sub Workbook_Open()
With Application.CommandBars("Cell").Controls.Add(tempo rary:=True)
.BeginGroup = True
.Caption = "Fill Down"
.OnAction = "Fill"
End With
End Sub

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.CommandBars("Cell").Controls("Fill Down").Delete
End Sub


Gord Dibben MS Excel MVP


On Wed, 20 Jun 2007 07:33:01 -0700, JimC wrote:

Is there a way in Excel to add options to the right click functions for the
mouse. For example, I would like to be able to use the fill down function by
right clicking instead of using CTRL D on the keyboard.





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
how you get the sum by using the mouse CC Excel Discussion (Misc queries) 7 October 24th 07 05:40 AM
Sum using mouse John Moore Excel Discussion (Misc queries) 3 May 3rd 07 12:00 AM
mouse over hurstead Excel Discussion (Misc queries) 1 February 15th 06 12:35 PM
my mouse moves diagonally when i scroll on mouse? BKMISHRA Excel Worksheet Functions 0 June 29th 05 11:43 AM
moving mouse highlights cells without touching left mouse button bremboy Excel Discussion (Misc queries) 2 January 27th 05 06:19 PM


All times are GMT +1. The time now is 06:08 PM.

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"