Hi, Kenny,
best use would be to avoid any merged cells. You could try using MergeArea for determining the merged cells or maybe just try
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Not Intersect(Target, Range("g28:bx48")) Is Nothing Then
Cancel = True
With Target.Cells(1)
If .Value = "No" Then
.Value = "Yes"
Else
.Value = "No"
End If
End With
End If
End Sub
or
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Not Intersect(Target, Range("g28:bx48")) Is Nothing Then
Cancel = True
With Target.Cells(1)
.Value = IIf(.Value = "No", "Yes", "No")
End With
End If
End Sub
Ciao,
Holger
Bookmarks