This may not be a satisfactory solution because in order to select the cell
a second time you have move the selection away from the cell and then back
to it again. Anyway, here is the event procedure which will do this..
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address(False, False) = "A1" Then
On Error GoTo FixMeUp
Application.EnableEvents = False
Target.Value = Target.Value + 1
End If
FixMeUp:
Application.EnableEvents = True
End Sub
To install it, right click the page where you want this functionality,
select View Code from the popup menu that appears, and then copy/paste the
above code into the code window that appeared. Now, since you didn't say
which cell you wanted to have this functionality, I guessed at A1; if that
is wrong, just change the A1 in the If..Then statement to the cell address
of the cell you want for your incrementer. By the way, if you could live
with a double click to activate the incrementer, then use this code
instead...
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, _
Cancel As Boolean)
If Target.Address(False, False) = "A1" Then
On Error GoTo FixMeUp
Cancel = True
Application.EnableEvents = False
Target.Value = Target.Value + 1
End If
FixMeUp:
Application.EnableEvents = True
End Sub
With this code, you don't have to move focus away from the cell and back
again... just keep double clicking and the value will advance.