Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.setup
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.setup
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.setup
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.setup
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.setup
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how you get the sum by using the mouse | Excel Discussion (Misc queries) | |||
Sum using mouse | Excel Discussion (Misc queries) | |||
mouse over | Excel Discussion (Misc queries) | |||
my mouse moves diagonally when i scroll on mouse? | Excel Worksheet Functions | |||
moving mouse highlights cells without touching left mouse button | Excel Discussion (Misc queries) |