Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Target.Column < 33 And Target.Column > 2 And Target.Row > 3 Then
Cancel = True
Dim lastrow As Long
Dim More As Long
lastrow = Cells(Rows.Count, "A").End(xlUp).Row
More = lastrow - 3
If Target.Interior.ColorIndex = 4 Then MsgBox "You have allready answered that question": Exit Sub
Cells(2, Target.Column).Value = Cells(2, Target.Column).Value + 1
Cells(3, Target.Column).Value = Cells(2, Target.Column).Value / More
Target.Interior.ColorIndex = 4
End If
End Sub
Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean)
If Target.Column < 33 And Target.Column > 2 And Target.Row > 3 Then
Cancel = True
If Target.Interior.ColorIndex = 4 Then
ans = MsgBox("Are you sure you want to change", vbYesNo)
If ans = vbYes Then
Target.Interior.ColorIndex = xlNone
Cells(2, Target.Column).Value = Cells(2, Target.Column).Value - 1
lastrow = Cells(Rows.Count, "A").End(xlUp).Row
More = lastrow - 3
Cells(3, Target.Column).Value = Cells(2, Target.Column).Value / More
End If
End If
End If
End Sub