this should work better
Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean)
'right click a couple of times on any cell in column A
If Union(Range("$A:$A"), Target).Address = Range("$A:$A").Address Then
ActiveCell.Offset.Value = ActiveCell.Value + 1
Cancel = True
End If
'right click any cell in column B
If Union(Range("$B:$B"), Target).Address = Range("$B:$B").Address Then
ActiveCell.Offset.Value = ActiveCell.Value + 1
Cancel = True
End If
'right click any cell in column C
If Union(Range("$C:$C"), Target).Address = Range("$C:$C").Address Then
ActiveCell.Offset.Value = ActiveCell.Value + 1
Cancel = True
End If
'right click any cell in column D
If Union(Range("$D:$D"), Target).Address = Range("$D:$D").Address Then
ActiveCell.Offset.Value = ActiveCell.Value + 1
Cancel = True
End If
'right click any cell in column E
If Union(Range("$E:$E"), Target).Address = Range("$E:$E").Address Then
ActiveCell.Offset.Value = ActiveCell.Value + 1
Cancel = True
End If
End Sub
Bookmarks