Private Sub Worksheet_BeforeDoubleClick1(ByVal Target As Range, Cancel As Boolean)
Dim myArea As String, Rispo, myMatch
If Range("Z1") = 0 Then Range("Z1").Value = 10: Call oneSec
If Not Application.Intersect(Target, Application.Intersect(Range("B:H"), Range("A:A"))) Is Nothing Then
Cancel = True
Rispo = Application.InputBox("Numero del tavolo:", "Tavolo?", , , , , , 1)
If Rispo = False Then Exit Sub
myMatch = Application.Match(Rispo, Range("A:A"), 0)
If Not IsError(myMatch) Then
Cells(myMatch, Target.Column) = Now - Int(Now)
End If
Call disposizionevalori
ElseIf Not Application.Intersect(Target, Range("B:I")) Is Nothing Then
Cancel = True
Target.Value = Now - Int(Now)
End If
End Sub |