Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Increase the value of a cell by one... With a mouse click...

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Increase the value of a cell by one... With a mouse click...

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
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 to click a cell with mouse and have a different tab appear Randy Carriere Excel Programming 4 June 22nd 08 03:21 AM
Mouse click to increase/decrease a cell value? Al Excel Discussion (Misc queries) 7 July 19th 07 04:50 AM
is there a control 2 increase a number in a cell by click on the c cflads Excel Discussion (Misc queries) 1 August 31st 06 11:09 PM
Add cell value with mouse click cbrasted Excel Discussion (Misc queries) 4 April 27th 05 01:36 AM
get value of a cell with a mouse click Ken Wright Excel Programming 0 July 22nd 03 07:15 PM


All times are GMT +1. The time now is 06:44 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"