Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I use the following to increase the value of a cell by one...
My question is, Is there a way to replace the Keyboard shortcut with a mouse click instead... I use this for 30-60 minutes at a time, and would liek to speed things up a little. Thanks... Sub Macro1() ' ' Macro1 Macro ' Macro recorded 6/6/2008 ' ' Keyboard Shortcut: Ctrl+l ' ActiveCell.Value = ActiveCell.Value + 1 ActiveCell.Offset(1, 0).Range("A1").Select End Sub |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Put into a DOUBLE click event. Right click sheet tabview codeinsert this.
Why drop down one cell?You may want to restrict to a column or a range by UN commenting the line I included Private Sub Worksheet_BeforeDoubleClick _ (ByVal Target As Range, Cancel As Boolean) 'if target.column<1 then exit sub Target = Target + 1 Target.Offset(1).Select End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software "WindSurfer" wrote in message ... I use the following to increase the value of a cell by one... My question is, Is there a way to replace the Keyboard shortcut with a mouse click instead... I use this for 30-60 minutes at a time, and would liek to speed things up a little. Thanks... Sub Macro1() ' ' Macro1 Macro ' Macro recorded 6/6/2008 ' ' Keyboard Shortcut: Ctrl+l ' ActiveCell.Value = ActiveCell.Value + 1 ActiveCell.Offset(1, 0).Range("A1").Select End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to click a cell with mouse and have a different tab appear | Excel Programming | |||
Mouse click to increase/decrease a cell value? | Excel Discussion (Misc queries) | |||
is there a control 2 increase a number in a cell by click on the c | Excel Discussion (Misc queries) | |||
Add cell value with mouse click | Excel Discussion (Misc queries) | |||
get value of a cell with a mouse click | Excel Programming |