Private Sub Worksheet_beforedoubleclick(ByVal target As Range, cancel As Boolean)
temp = Array("X", "")
If Not Application.Intersect(target, Range("w6:x16")) Is Nothing Then
With target
p = Application.Match(target, temp, 0)
If Not IsError(p) Then
If p = UBound(temp) + 1 Then p = 0
Else
p = 0
End If
target = temp(p)
cancel = True
End With
End If
End Sub