LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Chip Pearson
 
Posts: n/a
Default

Right click the worksheet tab and choose View Code. In the code
module that is displayed, paste the following code:

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range,
Cancel As Boolean)
Dim Rng As Range
Set Rng = Range("A1:F18", "A55:G81") ' add more ranges as
necessary
If Not Application.Intersect(Rng, Target) Is Nothing Then
Application.EnableEvents = False
Target.Value = Target.Value + 1
Application.EnableEvents = True
Cancel = True
End If
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"cwwolfdog" wrote in
message
...
I need code to add 1 to a tally sheet in certain cells. The
sheet has a
bunch of differenct cells that are seperate. Meaning a range
of A1:F18 and
then a different range of A55:G81. There are about 4 different
ranges or
group of cells that I need the user to be able to doubleclick
if they wish to
add 1 to the current value in that cell. Any help is
appreciated.



 
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



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